Key-Value Cache Implementation
- public function isAvailable() — Determine if the cache is available. For example, the APC cache tests if APC is installed. If this method returns false, the cache is not operational and can not be used.
- final public function getKey($key, $default) — Get a single key from cache. See @{method:getKeys} to get multiple keys at once.
- final public function setKey($key, $value, $ttl) — Set a single key in cache. See @{method:setKeys} to set multiple keys at once.
- final public function deleteKey($key) — Delete a key from the cache. See @{method:deleteKeys} to delete multiple keys at once.
- abstract public function getKeys($keys) — Get data from the cache.
- abstract public function setKeys($keys, $ttl) — Put data into the key-value cache.
- abstract public function deleteKeys($keys) — Delete a list of keys from the cache.
- abstract public function destroyCache() — Completely destroy all data in the cache.