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.
Parameters | |
---|---|
Name | Description |
options |
array
Configuration options. |
↳ variableKey |
int
The variable key for getting the data from the shared memory. Defaults to 1. |
↳ 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 to 10000. |
↳ perm |
int
The permission for shm_attach. Defaults to 0600. |
getItem
Parameter | |
---|---|
Name | Description |
key |
mixed
|
Returns | |
---|---|
Type | Description |
Psr\Cache\CacheItemInterface |
getItems
Parameter | |
---|---|
Name | Description |
keys |
array
|
Returns | |
---|---|
Type | Description |
iterable<\psr\cache\cacheiteminterface> |
hasItem
{@inheritdoc}
Parameter | |
---|---|
Name | Description |
key |
mixed
|
clear
{@inheritdoc}
deleteItem
{@inheritdoc}
Parameter | |
---|---|
Name | Description |
key |
mixed
|
deleteItems
{@inheritdoc}
Parameter | |
---|---|
Name | Description |
keys |
array
|
save
{@inheritdoc}
Parameter | |
---|---|
Name | Description |
item |
Psr\Cache\CacheItemInterface
|
saveDeferred
{@inheritdoc}
Parameter | |
---|---|
Name | Description |
item |
Psr\Cache\CacheItemInterface
|
commit
{@inheritdoc}
Constants
VAR_KEY
Value: 1
DEFAULT_PROJ
Value: 'A'
DEFAULT_MEMSIZE
Value: 10000
DEFAULT_PERM
Value: 0600