This backend stores data in an APC cache.
Source for this file: /Cache/src/backends/apc/apc_backend.php
ezcCacheMemoryBackend | --ezcCacheApcBackend
Version: | //autogentag// |
public ezcCacheApcBackend |
__construct(
)
Constructs a new ezcCacheApcBackend object. |
public void |
acquireLock(
$key
, $waitTime
, $maxTime
)
Acquires a lock on the given $key. |
public bool |
delete(
$key
)
Deletes the data associated with key $key. Returns true or false depending on the success of the operation. |
public mixed |
fetch(
$key
)
Fetches the data associated with key $key. |
public void |
releaseLock(
$key
)
Releases a lock on the given $key. |
public void |
reset(
)
Resets the complete backend. |
public bool |
store(
$key
, $var
, [ $ttl
= 0] )
Stores the data $var under the key $key. Returns true or false depending on the success of the operation. |
From ezcCacheMemoryBackend | |
---|---|
public abstract bool |
ezcCacheMemoryBackend::delete()
Deletes the data associated with key $key. |
public abstract mixed |
ezcCacheMemoryBackend::fetch()
Fetches the data associated with key $key. |
public abstract bool |
ezcCacheMemoryBackend::store()
Stores the data $var under the key $key. |
Constructs a new ezcCacheApcBackend object.
Type | Description |
---|---|
ezcBaseExtensionNotFoundException |
If the PHP apc extension is not installed. |
Acquires a lock on the given $key.
Name | Type | Description |
---|---|---|
$key |
string | |
$waitTime |
int | usleep() |
$maxTime |
int | seconds |
Deletes the data associated with key $key. Returns true or false depending on the success of the operation.
Name | Type | Description |
---|---|---|
$key |
string |
Method | Description |
---|---|
ezcCacheMemoryBackend::delete() |
Deletes the data associated with key $key. |
Fetches the data associated with key $key.
Name | Type | Description |
---|---|---|
$key |
mixed |
Method | Description |
---|---|
ezcCacheMemoryBackend::fetch() |
Fetches the data associated with key $key. |
Releases a lock on the given $key.
Name | Type | Description |
---|---|---|
$key |
string |
Resets the complete backend.
Marked private to not expose more of this interface to the user, since this will be removed in future versions.
Stores the data $var under the key $key. Returns true or false depending on the success of the operation.
Name | Type | Description |
---|---|---|
$key |
string | |
$var |
mixed | |
$ttl |
int |
Method | Description |
---|---|
ezcCacheMemoryBackend::store() |
Stores the data $var under the key $key. |