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
Create a SystemV shared memory based CacheItemPool.
Returns a Cache Item representing the specified key.
Returns a traversable set of cache items.
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 75
__construct(array $options = [])
Create a SystemV shared memory based CacheItemPool.
at line 93
CacheItemInterface
getItem(string $key)
Returns a Cache Item representing the specified key.
This method must always return a CacheItemInterface object, even in case of a cache miss. It MUST NOT return null.
at line 102
array|Traversable
getItems(array $keys = [])
Returns a traversable set of cache items.
at line 117
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 126
bool
clear()
Deletes all items in the pool.
at line 136
bool
deleteItem(string $key)
Removes the item from the pool.
at line 144
bool
deleteItems(array $keys)
Removes multiple items from the pool.
at line 159
bool
save(CacheItemInterface $item)
Persists a cache item immediately.
at line 172
bool
saveDeferred(CacheItemInterface $item)
Sets a cache item to be persisted later.
at line 181
bool
commit()
Persists any deferred cache items.