# Google Auth Library Client - Class SysVCacheItemPool (1.50.1)

1.50.1 (latest) 1.50.0 1.49.0 1.48.1 1.47.1 1.46.0 1.45.2 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 \\ Cache

## Methods

### __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'. |
| `↳ semProj` | `string` The project identifier for ftok to provide to `sem_get`. This needs to be a one character string. **Defaults to** 'B'. |
| `↳ 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_SEM_PROJ

    Value: 'B'

### DEFAULT_MEMSIZE

    Value: 10000

### DEFAULT_PERM

    Value: 0600