You are here

function _apdqc_apc_get_lock_key in Asynchronous Prefetch Database Query Cache 7

Helper function for getting a cache key for apc.

Parameters

string $name: The name of the lock.

Return value

string The name of the key.

5 calls to _apdqc_apc_get_lock_key()
_apdqc_lock_acquire in ./apdqc.lock.apc.inc
Acquire (or renew) a lock, but do not block if it fails.
_apdqc_lock_may_be_available in ./apdqc.lock.apc.inc
Check if lock acquired by a different process may be available.
_apdqc_lock_release in ./apdqc.lock.apc.inc
Release a lock previously acquired by lock_acquire().
_apdqc_lock_release_all in ./apdqc.lock.apc.inc
Release all locks acquired by this request.
_apdqc_lock_wait in ./apdqc.lock.apc.inc
Wait for a lock to be available.

File

./apdqc.lock.apc.inc, line 180
An APC based implementation of a locking mechanism.

Code

function _apdqc_apc_get_lock_key($name) {
  return "apc_lock:{$name}";
}