PhpFileStorage
class PhpFileStorage extends FileStorage (View source)
The PhpFileStorage class.
Methods
Constructor.
Removes multiple items from the pool.
Confirms if the cache contains specified cache item.
Method to determine whether a storage entry has been set for a key and not expired.
Method to set property options
Sets a cache item to be persisted later.
Method to get a storage entry value from a key.
Persisting our data in the cache, uniquely referenced by a key with an optional expiration TTL time.
Check whether or not the cached data by id has expired.
Details
in FileStorage at line line 69
__construct(int $path, string $group = '', bool $denyAccess = false, int $ttl = null, mixed $options = array())
Constructor.
in AbstractCacheStorage at line line 74
Traversable
getItems(array $keys = array())
getItems
in AbstractCacheStorage at line line 93
AbstractCacheStorage
deleteItems(array $keys)
Removes multiple items from the pool.
in AbstractCacheStorage at line line 120
bool
hasItem(string $key)
Confirms if the cache contains specified cache item.
Note: This method MAY avoid retrieving the cached value for performance reasons. This could result in a race condition with CacheItemInterface::get(). To avoid such situation use CacheItemInterface::isHit() instead.
in FileStorage at line line 255
bool
exists(string $key)
Method to determine whether a storage entry has been set for a key and not expired.
in AbstractCacheStorage at line line 149
array
getOptions()
Method to get property Options
in AbstractCacheStorage at line line 161
AbstractCacheStorage
setOptions(array $options)
Method to set property options
in AbstractCacheStorage at line line 177
bool
saveDeferred(CacheItemInterface $item)
Sets a cache item to be persisted later.
in AbstractCacheStorage at line line 195
bool
commit()
Persists any deferred cache items.
in FileStorage at line line 89
boolean
clear()
This will wipe out the entire cache's keys.
...
in FileStorage at line line 123
CacheItemInterface
getItem(string $key)
Method to get a storage entry value from a key.
in FileStorage at line line 153
boolean
deleteItem(string $key)
Method to remove a storage entry for a key.
in FileStorage at line line 165
FileStorage
save(CacheItemInterface $item)
Persisting our data in the cache, uniquely referenced by a key with an optional expiration TTL time.
in FileStorage at line line 314
string
fetchStreamUri(string $key)
Get the full stream URI for the cache entry.
in FileStorage at line line 342
boolean
isExpired(string $key)
Check whether or not the cached data by id has expired.
in FileStorage at line line 360
boolean
denyAccess(boolean $bool = null)
getDenyAccess
in FileStorage at line line 375
string
getGroup()
Method to get property Group
in FileStorage at line line 387
FileStorage
setGroup(string $group)
Method to set property group
in FileStorage at line line 399
string
getPath()
Method to get property Path
in FileStorage at line line 411
FileStorage
setPath(string $path)
Method to set property path
in FileStorage at line line 425
FileStorage
setFileFormat(string $format)
setFileFormat