Reference documentation and code samples for the Google Auth Library Client class SysVCacheItemPool.
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.
Namespace
Google \ Auth \ CacheMethods
__construct
Create a SystemV shared memory based CacheItemPool.
options
array
Configuration options.
↳ variableKey
int
The variable key for getting the data from the shared memory. Defaults to1.
↳ proj
string
The project identifier for ftok. This needs to be a one character string. Defaults to'A'.
↳ memsize
int
The memory size in bytes for shm_attach. Defaults to10000.
↳ perm
int
The permission for shm_attach. Defaults to0600.
getItem
key
mixed
Psr\Cache\CacheItemInterface
getItems
keys
array
iterable<\psr\cache\cacheiteminterface>
hasItem
{@inheritdoc}
key
mixed
clear
{@inheritdoc}
deleteItem
{@inheritdoc}
key
mixed
deleteItems
{@inheritdoc}
keys
array
save
{@inheritdoc}
item
Psr\Cache\CacheItemInterface
saveDeferred
{@inheritdoc}
item
Psr\Cache\CacheItemInterface
commit
{@inheritdoc}
Constants
VAR_KEY
Value: 1
DEFAULT_PROJ
Value: 'A'
DEFAULT_MEMSIZE
Value: 10000
DEFAULT_PERM
Value: 0600