Doctrine\Common\Cache\Cache
Interface for cache drivers.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
interface Cache
{
- // constants
- const STATS_HITS = 'hits';
- const STATS_MISSES = 'misses';
- const STATS_UPTIME = 'uptime';
- const STATS_MEMORY_USAGE = 'memory_usage';
- const STATS_MEMORY_AVAILIABLE = 'memory_available';
- // methods
- public mixed fetch()
- public boolean contains()
- public boolean save()
- public boolean delete()
- public void getStats()
Constants
Name | Value |
---|---|
STATS_HITS | 'hits' |
STATS_MISSES | 'misses' |
STATS_UPTIME | 'uptime' |
STATS_MEMORY_USAGE | 'memory_usage' |
STATS_MEMORY_AVAILIABLE | 'memory_available' |
Methods
public
- contains() — Test if an entry exists in the cache.
- delete() — Deletes a cache entry.
- fetch() — Fetches an entry from the cache.
- getStats() — Retrieves cached information from data store
- save() — Puts data into the cache.