public | |
public static boolean | #isAvailable( ) Checks if a caching extension is available Checks if a caching extension is available Returnsboolean
Author |
public mixed | #__call(string$method,array$args) Calls a method of the caching client Calls a method of the caching client Parameters- $method
string $method The method- $args
array $args Method args
Returnsmixed Whatever the method returns
Author |
public mixed | #__get(string$key) Key getter ParametersReturnsmixed
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
Returnsboolean
Author |
abstract public mixed | #get(string$id) Gets a cached value Parameters- $id
string $id The value's key
Returnsmixed
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.
Returnsboolean
Author |
public boolean | #__isset(string$key) Checks if a key is set in cache Checks if a key is set in cache ParametersReturnsboolean
Author |
public | #__unset(string$key) Removes a key from cache ParametersAuthor |
abstract public boolean | #delete(string$key) Deletes a memcache key ParametersReturnsboolean
Author |
abstract public boolean | #purge( ) Clears all items from cache Clears all items from cache Returnsboolean
Author |
abstract public boolean | #addServer(string$ip,integer$port,integer$weight) Adds a server to the pool Adds a server to the pool Parameters- $ip
string $ip The server IP- $port
integer $port The server port- $weight
integer $weight The server's weight, ie how likely it is to be used
Returnsboolean
Author |
publicAlo\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
ReturnsAuthor |
abstract public array | #getAll( ) Return all cached keys and values Return all cached keys and values Returnsarray
Author |
publicAlo\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
ReturnsAuthor |