RedisStore::setPrefix()

void setPrefix(string $prefix) Set the cache key prefix. Parameters string $prefix Return Value void

RedisStore::tags()

TaggedCache tags(array|mixed $names) Begin executing a new tags operation. Parameters array|mixed $names Return Value TaggedCache

RedisStore::__construct()

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

RedisTaggedCache class RedisTaggedCache extends TaggedCache (View source) Traits RetrievesMultipleKeys Macroable

RedisTaggedCache::add()

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

RedisTaggedCache::decrement()

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

RedisTaggedCache::flush()

void flush() Remove all items from the cache. Return Value void

RedisTaggedCache::forever()

void forever(string $key, mixed $value) Store an item in the cache indefinitely. Parameters string $key mixed $value Return Value void

RedisTaggedCache::forget()

bool forget(string $key) Remove an item from the cache. Parameters string $key Return Value bool

RedisTaggedCache::get()

mixed get(string $key, mixed $default = null) Retrieve an item from the cache by key. Parameters string $key mixed $default Return Value mixed