CacheAdapter
class CacheAdapter implements Cache (View source)
Cache adapter to use Flow caches as Doctrine cache
Properties
protected FrontendInterface | $cache | ||
protected Context | $securityContext |
Methods
void
string
convertCacheIdentifier(string $id)
No description
mixed
fetch(string $id)
Fetches an entry from the cache.
bool
contains(string $id)
Tests if an entry exists in the cache.
bool
save(string $id, mixed $data, int $lifeTime = 0)
Puts data into the cache.
bool
delete(string $id)
Deletes a cache entry.
array|null
getStats()
Retrieves cached information from the data store.
Details
void
setCache(FrontendInterface $cache)
Set the cache this adapter should use.
protected string
convertCacheIdentifier(string $id)
No description
mixed
fetch(string $id)
Fetches an entry from the cache.
bool
contains(string $id)
Tests if an entry exists in the cache.
bool
save(string $id, mixed $data, int $lifeTime = 0)
Puts data into the cache.
bool
delete(string $id)
Deletes a cache entry.
array|null
getStats()
Retrieves cached information from the data store.
The server's statistics array has the following values:
- hits Number of keys that have been requested and found present.
- misses Number of items that have been requested and not found.
- uptime Time that the server is running.
- memory_usage Memory used by this server to store items.
- memory_available Memory allowed to use for storage.