FileStorage
class FileStorage extends AbstractCacheStorage (View source)
Filesystem cache driver for the Windwalker Framework.
Supported options: - ttl (integer) : The default number of seconds for the cache life. - file.locking (boolean) : - file.path : The path for cache files.
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.
This will wipe out the entire cache's keys.
Method to get a storage entry value from a key.
Method to remove a storage entry for a key.
Persisting our data in the cache, uniquely referenced by a key with an optional expiration TTL time.
Get the full stream URI for the cache entry.
Check whether or not the cached data by id has expired.
getDenyAccess
Method to get property Group
Method to set property group
Method to get property Path
Method to set property path
setFileFormat
Details
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.
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.
at line line 89
boolean
clear()
This will wipe out the entire cache's keys.
...
at line line 123
CacheItemInterface
getItem(string $key)
Method to get a storage entry value from a key.
at line line 153
boolean
deleteItem(string $key)
Method to remove a storage entry for a key.
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.
at line line 314
string
fetchStreamUri(string $key)
Get the full stream URI for the cache entry.
at line line 342
boolean
isExpired(string $key)
Check whether or not the cached data by id has expired.
at line line 360
boolean
denyAccess(boolean $bool = null)
getDenyAccess
at line line 375
string
getGroup()
Method to get property Group
at line line 387
FileStorage
setGroup(string $group)
Method to set property group
at line line 399
string
getPath()
Method to get property Path
at line line 411
FileStorage
setPath(string $path)
Method to set property path
at line line 425
FileStorage
setFileFormat(string $format)
setFileFormat