Méthode |
Description |
|
__construct ( Database $database, $collectionName ) |
|
|
clear ( ) |
|
|
count ( ) |
|
|
delete ( $key ) |
|
|
deleteMatchingAllTags ( array $tags ) |
Delete documents by tag
Document deletes if it contains all passed tags |
|
deleteMatchingAnyTag ( array $tags ) |
Delete documents by tag
Document deletes if it contains any of passed tags |
|
deleteMatchingNoneOfTags ( array $tags ) |
Delete documents by tag
Document deletes if it not contains all passed tags |
|
deleteMatchingTag ( $tag ) |
Delete documents by tag |
|
deleteNotMatchingAnyTag ( array $tags ) |
Delete documents by tag
Document deletes if it contains any of passed tags |
|
deleteNotMatchingTag ( $tag ) |
Delete documents by tag |
|
get ( $key ) : array | null |
Get value by key |
|
has ( $key ) |
|
|
init ( ) |
|
|
set ( integer | string $key, mixed $value, integer $ttl, array $tags = null ) |
Set with expiration in seconds |
|
setDueDate ( integer | string $key, mixed $value, integer $timestamp, array $tags = null ) |
Set with expiration on concrete date |
|
setNeverExpired ( integer | string $key, mixed $value, array $tags = null ) : Cache |
Set key that never expired |
|