Class apc
Driver for the Alternative PHP Cache (APC) user-variable cache.
- Core\Object implements Core\Chainable
-
Core\Set
implements
Core\Accessor
-
Core\Cache
-
Core\Cache\Driver\apc
Package: Core\Cache
Since: 3.1
Requires: PHP 5.3, APC 3.0
Version: 1.0
Located at Cache/Driver/apc.inc.php
Methods summary
public
|
|
public
string
|
|
public
boolean
|
|
public
string
|
|
public
string
|
#
getHash( string $class, string $key )
Returns the hash for the requested cache entry. The hash type depends on the backend in use and defaults to 16-byte binary MD5. |
public
array
|
#
getMeta( string $class, string $key )
Returns an array of meta attributes for the requested cache entry. |
public
|
#
getStream( string $class, string $key )
Returns a reading stream instance for the requested cache entry. |
public
integer
|
#
getTimestamp( string $class, string $key )
Returns a UNIX timestamp of the last cache entry modification. |
public
|
#
put( string $class, string $key, string $binaryData, integer $ttl =
Writes binary data to a specified cache entry. |
public
|
#
putStream( string $class, string $key, integer $ttl =
Returns a writing stream instance for the requested cache entry. |
public
|
#
remove( string $class, string $key )
Deletes a cache key entry. If the entry does not exist, no operation is performed. |
Methods inherited from Core\Cache
activate(),
active(),
autocreate(),
defaultInstance(),
getAge(),
getVar(),
putVar(),
setVersionID(),
unify()
Methods inherited from Core\Object
__autocreateFactory(),
__call(),
__processParameters(),
__toString(),
attachMethod(),
chain(),
getValueForKey(),
getValueForKeyPath(),
getValueForUndefinedKey(),
hash(),
issetValueForKey(),
setValueForKey(),
setValueForKeyPath(),
setValueForUndefinedKey(),
uuid()
Constants summary
string |
PrefixParameter
Prefix for APC keys. Default to empty string (global cache classes). |
#
'prefix'
|
Constants inherited from Core\Cache
Constants inherited from Core\Object
AnyParameterType,
AutochainParameterType,
AutocreateParameterType,
BooleanParameterType,
CharParameterType,
EnumParameterType,
IntegerParameterType,
RealParameterType,
StringParameterType,
UserParameterType
Properties summary
protected
array
|
$_v_parameters
APC cache settings array. |
|
protected
string
|
$_v_prefix
APC keys prefix (derived from prefix setting). |
Properties inherited from Core\Cache
Magic properties
public read-only
array
|
$parameters
Configuration array. |
public read-only
string
|
$prefix
Calculated prefix string for APC keys. |