| Fully Qualified Name: | Laminas\Cache\Storage\StorageInterface |
Add an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
Returns: bool
Add multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keyValuePairs | array |
Returns: array Array of not stored keys
Set an item only if token matches
It uses the token received from getItem() to check if the item has changed before overwriting it.
| Parameter Name | Type | Description |
|---|---|---|
| $token | mixed | |
| $key | string | |
| $value | mixed |
Returns: bool
Decrement an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | int |
Returns: int|bool The new value on success, false on failure
Decrement multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keyValuePairs | array |
Returns: array Associative array of keys and new values
Capabilities of this storage
Returns: \Capabilities
Get an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $success | bool | |
| $casToken | mixed |
Returns: mixed Data on success, null on failure
Get multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keys | array |
Returns: array Associative array of keys and values
Get metadata of an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string |
Returns: array|bool Metadata on success, false on failure
Get multiple metadata
| Parameter Name | Type | Description |
|---|---|---|
| $keys | array |
Returns: array Associative array of keys and metadata
Get options
Returns: \Adapter\AdapterOptions
Test if an item exists.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string |
Returns: bool
Test multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keys | array |
Returns: array Array of found keys
Increment an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | int |
Returns: int|bool The new value on success, false on failure
Increment multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keyValuePairs | array |
Returns: array Associative array of keys and new values
Remove an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string |
Returns: bool
Remove multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keys | array |
Returns: array Array of not removed keys
Replace an existing item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
Returns: bool
Replace multiple existing items.
| Parameter Name | Type | Description |
|---|---|---|
| $keyValuePairs | array |
Returns: array Array of not stored keys
Store an item.
| Parameter Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
Returns: bool
Store multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keyValuePairs | array |
Returns: array Array of not stored keys
Set options.
| Parameter Name | Type | Description |
|---|---|---|
| $options | array|\Traversable|\Adapter\AdapterOptions |
Returns: \StorageInterface Fluent interface
Reset lifetime of an item
| Parameter Name | Type | Description |
|---|---|---|
| $key | string |
Returns: bool
Reset lifetime of multiple items.
| Parameter Name | Type | Description |
|---|---|---|
| $keys | array |
Returns: array Array of not updated keys