wincache_lock()
wincache_lock - Acquires an exclusive lock on a given key
Syntax
bool wincache_lock (
string $key,
bool $isglobal)
Arguments
- key - Name of the key in the cache to get the lock on.
- isglobal - Controls whether the scope of the lock is system-wide or local. Local locks are scoped to the application pool in IIS FastCGI case or to all php processes that have the same parent process identifier.
Description
Obtains an exclusive lock on a given key. The execution of the current script will be blocked until the lock can be obtained. Once the lock is obtained, the other scripts that try to request the lock by using the same key will be blocked, until the current script releases the lock by using wincache_unlock().
Version
PHP No version information available, might only be in SVN
Return value
Returns TRUE on success or FALSE on failure.