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

__construct(array $options = [])

Create a SystemV shared memory based CacheItemPool.

getItem($key)

{@inheritdoc}

getItems(array $keys = [])

{@inheritdoc}

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

save(CacheItemInterface $item)

{@inheritdoc}

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

commit()

{@inheritdoc}

Details

__construct(array $options = [])

Create a SystemV shared memory based CacheItemPool.

Parameters

array $options

[optional] { Configuration options.

@type int $variableKey The variable key for getting the data from the shared memory. Defaults to 1. @type string $proj The project identifier for ftok. This needs to be a one character string. Defaults to 'A'. @type int $memsize The memory size in bytes for shm_attach. Defaults to 10000. @type int $perm The permission for shm_attach. Defaults to 0600.

getItem($key)

{@inheritdoc}

Parameters

$key

getItems(array $keys = [])

{@inheritdoc}

Parameters

array $keys

hasItem($key)

{@inheritdoc}

Parameters

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Parameters

$key

deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

commit()

{@inheritdoc}