Cotonti\Cache_driver
system\cache.php at line 55

Class Cache_driver

Cache_driver

public abstract class Cache_driver

Abstract class containing code common for all cache drivers

Method Summary
abstract bool

clear(string realm)

Clears all cache entries served by current driver

abstract bool

exists(string id, string realm)

Checks if an object is stored in cache

abstract mixed

get(string id, string realm)

Returns value of cached image

abstract bool

remove(string id, string realm)

Removes object image from cache

Method Detail

system\cache.php at line 62

clear

public abstract bool clear(string realm)
Clears all cache entries served by current driver
Parameters:
realm - Cache realm name, to clear specific realm only
Returns:

system\cache.php at line 70

exists

public abstract bool exists(string id, string realm)
Checks if an object is stored in cache
Parameters:
id - Object identifier
realm - Cache realm
Returns:

system\cache.php at line 78

get

public abstract mixed get(string id, string realm)
Returns value of cached image
Parameters:
id - Object identifier
realm - Realm name
Returns:
Cached item value or NULL if the item was not found in cache

system\cache.php at line 86

remove

public abstract bool remove(string id, string realm)
Removes object image from cache
Parameters:
id - Object identifier
realm - Realm name
Returns: