void setPrefix(string $prefix) Set the cache key prefix. Parameters string $prefix Return Value void
TaggedCache tags(array|mixed $names) Begin executing a new tags operation. Parameters array|mixed $names Return Value TaggedCache
void __construct(Database $redis, string $prefix = '', string $connection = 'default') Create a new Redis store. Parameters Database $redis string $prefix string $connection Return Value void
RedisTaggedCache class RedisTaggedCache extends TaggedCache (View source) Traits RetrievesMultipleKeys Macroable
bool add(string $key, mixed $value, DateTime|float|int $minutes) Store an item in the cache if the key does not exist. Parameters string $key mixed $value DateTime|float|int $minutes Return Value bool
int|bool decrement(string $key, mixed $value = 1) Decrement the value of an item in the cache. Parameters string $key mixed $value Return Value int|bool
void flush() Remove all items from the cache. Return Value void
void forever(string $key, mixed $value) Store an item in the cache indefinitely. Parameters string $key mixed $value Return Value void
bool forget(string $key) Remove an item from the cache. Parameters string $key Return Value bool
mixed get(string $key, mixed $default = null) Retrieve an item from the cache by key. Parameters string $key mixed $default Return Value mixed
Page 9647 of 11844