Doctrine\Common\Cache\FilesystemCache
Filesystem cache driver.
- Author: Fabio B. Silva <fabio.bat.silva@gmail.com>
Synopsis
class FilesystemCache
extends FileCache
{
- // constants
- const EXTENSION = '.doctrinecache.data';
- // Inherited constants from CacheProvider
- const DOCTRINE_NAMESPACE_CACHEKEY = 'DoctrineNamespaceCacheKey[%s]';
- // members
- protected $extension;
- // Inherited members from FileCache
- protected string $directory;
- protected string $extension;
- // methods
- protected void doFetch()
- protected void doContains()
- protected void doSave()
- // Inherited methods from FileCache
- public void __construct()
- public string getDirectory()
- public string getExtension()
- protected string getFilename()
- protected void doDelete()
- protected void doFlush()
- protected void doGetStats()
- // Inherited methods from CacheProvider
- public void setNamespace()
- public string getNamespace()
- public void fetch()
- public void contains()
- public void save()
- public void delete()
- public void getStats()
- public boolean flushAll()
- public boolean deleteAll()
- protected abstract string doFetch()
- protected abstract boolean doContains()
- protected abstract boolean doSave()
- protected abstract boolean doDelete()
- protected abstract boolean doFlush()
- protected abstract array doGetStats()
Hierarchy
Extends
Constants
Name | Value |
---|---|
EXTENSION | '.doctrinecache.data' |
DOCTRINE_NAMESPACE_CACHEKEY | 'DoctrineNamespaceCacheKey[%s]' |
STATS_HITS | 'hits' |
STATS_MISSES | 'misses' |
STATS_UPTIME | 'uptime' |
STATS_MEMORY_USAGE | 'memory_usage' |
STATS_MEMORY_AVAILIABLE | 'memory_available' |
Members
protected
- $directory — string
-
$extension
{@inheritdoc} - $extension — string
Methods
protected
- doContains() — {@inheritdoc}
- doFetch() — {@inheritdoc}
- doSave() — {@inheritdoc}
Inherited from Doctrine\Common\Cache\FileCache
protected
- doDelete() — {@inheritdoc}
- doFlush() — {@inheritdoc}
- doGetStats() — {@inheritdoc}
- getFilename()
public
- getDirectory() — Gets the cache directory.
- getExtension() — Gets the cache file extension.
Inherited from Doctrine\Common\Cache\CacheProvider
protected
- doContains() — Test if an entry exists in the cache.
- doDelete() — Deletes a cache entry.
- doFetch() — Fetches an entry from the cache.
- doFlush() — Deletes all cache entries.
- doGetStats() — Retrieves cached information from data store
- doSave() — Puts data into the cache.
public
- contains() — {@inheritdoc}
- delete() — {@inheritdoc}
- deleteAll() — Delete all cache entries.
- fetch() — {@inheritdoc}
- flushAll() — Deletes all cache entries.
- getNamespace() — Retrieve the namespace that prefixes all cache ids.
- getStats() — {@inheritdoc}
- save() — {@inheritdoc}
- setNamespace() — Set the namespace to prefix all cache ids with.