SysVCacheItemPool
class SysVCacheItemPool implements CacheItemPoolInterface (View source)
SystemV shared memory based CacheItemPool implementation.
This CacheItemPool implementation can be used among multiple processes, but it doesn't provide any locking mechanism. If multiple processes write to this ItemPool, you have to avoid race condition manually in your code.
Constants
VAR_KEY |
|
DEFAULT_PROJ |
|
DEFAULT_MEMSIZE |
|
DEFAULT_PERM |
|
Methods
No description
No description
Confirms if the cache contains specified cache item.
Deletes all items in the pool.
Removes the item from the pool.
Removes multiple items from the pool.
Persists a cache item immediately.
Sets a cache item to be persisted later.
Persists any deferred cache items.
Details
at line 77
__construct(array $options = [])
Create a SystemV shared memory based CacheItemPool.
at line 99
CacheItemInterface
getItem(string $key)
at line 109
array|Traversable
getItems(array $keys = [])
at line 125
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 134
bool
clear()
Deletes all items in the pool.
at line 144
bool
deleteItem(string $key)
Removes the item from the pool.
at line 152
bool
deleteItems(array $keys)
Removes multiple items from the pool.
at line 167
bool
save(CacheItemInterface $item)
Persists a cache item immediately.
at line 180
bool
saveDeferred(CacheItemInterface $item)
Sets a cache item to be persisted later.
at line 189
bool
commit()
Persists any deferred cache items.