Constructor.
Sugar_Cache_Memcache
__construct
(
Sugar $sugar,
$memcached)
-
Sugar
$sugar: Sugar instance.
-
Memcached
$memcached
Clears all caches the driver is responsible for.
bool
clear
()
Implementation of:
- Sugar_CacheDriver::clear()
- Clears all caches the driver is responsible for.
Erases the bytecode for the requested reference.
-
Sugar_Template
$template: File reference for the bytecode to erase.
-
string
$type: Either 'ctpl' or 'chtml'.
Implementation of:
- Sugar_CacheDriver::erase()
- Erases the bytecode for the requested reference.
Returns the bytecode for the requested reference.
-
Sugar_Template
$template: File reference to lookup.
-
string
$type: Either 'ctpl' or 'chtml'.
Implementation of:
- Sugar_CacheDriver::load()
- Returns the bytecode for the requested reference.
Adds the bytecode to the cache.
-
Sugar_Template
$template: File reference to lookup.
-
string
$type: Either 'ctpl' or 'chtml'.
-
array
$data: Bytecode.
Implementation of:
- Sugar_CacheDriver::store()
- Adds the bytecode to the cache.