NullStore
class NullStore extends TaggableStore implements CanFlushLocks, LockProvider
Traits
Fallback implementations for stores without native multi-key operations.
Methods
Store multiple items in the cache for a given number of seconds.
Retrieve an item from the cache by key.
Store an item in the cache for a given number of seconds.
Increment the value of an item in the cache.
Decrement the value of an item in the cache.
Store an item in the cache indefinitely.
Restore a lock instance using the owner identifier.
Determine if the store can currently flush locks.
Flush all locks managed by the store.
Determine if the lock store is separate from the cache store.
Adjust the expiration time of a cached item.
Remove an item from the cache.
Remove all items from the cache.
Get the cache key prefix.
Details
in
TaggableStore at line 17
TaggedCache
tags(mixed $names)
Begin executing a new tags operation.
in
TaggableStore at line 31
bool
supportsTags()
Determine if this store currently supports tags.
Stores whose tag support depends on configuration or composition override this; for everything else extending TaggableStore, tag support is unconditional. A store that can return false here must also throw a NotSupportedException from tags() because Repository relies on the store to enforce its own conditional support.
in
TaggableStore at line 42
TagMode
getTagMode()
Get the tag mode this store operates under.
Default matches TaggableStore::tags() semantics (all-mode: keys are namespaced by the tag set). Subclasses override if they deviate.
in
RetrievesMultipleKeys at line 21
array
many(array $keys)
Retrieve multiple items from the cache by key.
Items not found in the cache will have a null value.
in
RetrievesMultipleKeys at line 40
bool
putMany(array $values, int $seconds)
Store multiple items in the cache for a given number of seconds.
at line 17
mixed
get(string $key)
Retrieve an item from the cache by key.
at line 25
bool
put(string $key, mixed $value, int $seconds)
Store an item in the cache for a given number of seconds.
at line 33
bool|int
increment(string $key, int $value = 1)
Increment the value of an item in the cache.
at line 41
bool|int
decrement(string $key, int $value = 1)
Decrement the value of an item in the cache.
at line 49
bool
forever(string $key, mixed $value)
Store an item in the cache indefinitely.
at line 57
Lock
lock(string $name, int $seconds = 0, string|null $owner = null)
Get a lock instance.
at line 65
Lock
restoreLock(string $name, string $owner)
Restore a lock instance using the owner identifier.
at line 73
bool
supportsFlushingLocks()
Determine if the store can currently flush locks.
at line 81
bool
flushLocks()
Flush all locks managed by the store.
at line 89
bool
hasSeparateLockStore()
Determine if the lock store is separate from the cache store.
at line 97
bool
touch(string $key, int $seconds)
Adjust the expiration time of a cached item.
at line 105
bool
forget(string $key)
Remove an item from the cache.
at line 113
bool
flush()
Remove all items from the cache.
at line 121
string
getPrefix()
Get the cache key prefix.