ItemPool
- Full name:
\Qubus\Cache\Psr6\ItemPool
- This class is marked as final and can't be subclassed
- This class implements:
\Psr\Cache\CacheItemPoolInterface
- This class is a Final class
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
CACHE_FLAG | public | "@psr6_" |
Properties
deferredItems
adapter
ttl
namespace
autoCommitCount
Methods
__construct
public __construct(\Qubus\Cache\Adapter\CacheAdapter $adapter, int|null|\DateInterval $ttl = null, ?string $namespace = 'default', ?int $autoCommitCount = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$adapter | \Qubus\Cache\Adapter\CacheAdapter | |
$ttl | int|null|\DateInterval | |
$namespace | ?string | |
$autoCommitCount | ?int |
__destruct
Commit any pending deferred items.
getItem
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
getItems
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$keys | array |
hasItem
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
clear
{@inheritdoc}
deleteItem
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
deleteItems
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$keys | array |
save
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$item | \Psr\Cache\CacheItemInterface |
Throws:
saveDeferred
{@inheritdoc}
Parameters:
Parameter | Type | Description |
---|---|---|
$item | \Psr\Cache\CacheItemInterface |
Throws:
commit
{@inheritdoc}
getTtl
Parameters:
Parameter | Type | Description |
---|---|---|
$ttl | int|null|\DateInterval |
Inherited methods
reservedKeyCharacters
Reserved key characters that should not be used in a cache key.
- This method is final.
validateKey
Validates cache key.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
Throws:
isHashed
Checks if key is hashed.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
prefix
Affixes a prefix to the
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
validateKeys
Validates an array of keys.
Parameters:
Parameter | Type | Description |
---|---|---|
$keys | array |
Throws:
Automatically generated on 2025-10-13