public
|
|
public
mixed
|
#
__get( string $key )
Key getter
Parameters
Returns
mixed
Author
|
public
boolean
|
#
__set( string $key, mixed $val )
Sets a value with its default expiration time
Sets a value with its default expiration time
Parameters
- $key
string $key The key
- $val
mixed $val The value
Returns
boolean
Author
|
public
boolean
|
#
__isset( string $key )
Checks if a key is set in cache
Checks if a key is set in cache
Parameters
Returns
boolean
Author
|
public
|
#
__unset( string $key )
Removes a key from cache
Parameters
Author
|
public static
boolean
|
#
is_available( )
Checks if a caching extension is available
Checks if a caching extension is available
Returns
boolean
Author
|
abstract public
boolean
|
#
purge( )
Clears all items from cache
Clears all items from cache
Returns
boolean
Author
|
abstract public
boolean
|
#
addServer( string $ip, string $port, integer $weight )
Adds a server to the pool
Adds a server to the pool
Parameters
- $ip
string $ip The server IP
- $port
string $port The server port
- $weight
integer $weight The server's weight, ie how likely it is to be used
Returns
boolean
Author
|
abstract public
array
|
#
getStats( )
Gets cache process info
Returns
array
Author
|
abstract public
boolean
|
#
delete( string $key )
Deletes a memcache key
Parameters
Returns
boolean
Author
|
abstract public
mixed
|
#
get( string $id )
Gets a cached value
Parameters
- $id
string $id The value's key
Returns
mixed
Author
|
abstract public
array
|
#
getAll( )
Return all cached keys and values
Return all cached keys and values
Returns
array
Author
|
abstract public
boolean
|
#
set( string $key, mixed $var, integer $expire = 3600 )
Sets a cached key/value pair
Sets a cached key/value pair
Parameters
- $key
string $key The key identifier
- $var
mixed $var The value to set
- $expire
integer $expire When to expire the set data. Defaults to 3600s.
Returns
boolean
Author
|
public
Alo\Cache\AbstractCache
|
#
deleteWithPrefix( string $prefix )
Deletes all cached entries with the supplied prefix
Deletes all cached entries with the supplied prefix
Parameters
- $prefix
string $prefix The prefix
Returns
Author
|
public
Alo\Cache\AbstractCache
|
#
deleteWithSuffix( string $suffix )
Deletes all cached entries with the supplied suffix
Deletes all cached entries with the supplied suffix
Parameters
- $suffix
string $suffix The suffix
Returns
Author
|