Repository
class Repository implements Repository, ArrayAccess (View source)
Traits
Methods
Dynamically handle calls to the class.
Handle dynamic calls into macros or pass missing methods to the store.
Determine if an item exists in the cache.
Retrieve an item from the cache by key.
Retrieve multiple items from the cache by key.
Retrieve an item from the cache and delete it.
Store multiple items in the cache for a given number of minutes.
Store an item in the cache indefinitely.
Get an item from the cache, or store the default value forever.
Remove an item from the cache.
Begin executing a new tags operation if the store supports it.
Get the default cache time.
Set the default cache time in minutes.
Determine if a cached value exists.
Retrieve an item from the cache by key.
Store an item in the cache for the default time.
Remove an item from the cache.
Clone cache repository instance.
Details
static
mixed
__callStatic(
string $method,
array $parameters)
Dynamically handle calls to the class.
at line line 481
mixed
__call(
string $method,
array $parameters)
Handle dynamic calls into macros or pass missing methods to the store.
at line line 123
mixed
get(
string $key,
mixed $default = null)
Retrieve an item from the cache by key.
at line line 150
array
many(
array $keys)
Retrieve multiple items from the cache by key.
Items not found in the cache will have a null value.
at line line 180
mixed
pull(
string $key,
mixed $default = null)
Retrieve an item from the cache and delete it.
at line line 197
void
put(
string $key,
mixed $value,
DateTime|int $minutes = null)
Store an item in the cache.
at line line 219
void
putMany(
array $values,
int $minutes)
Store multiple items in the cache for a given number of minutes.
at line line 240
bool
add(
string $key,
mixed $value,
DateTime|int $minutes)
Store an item in the cache if the key does not exist.
at line line 283
mixed
remember(
string $key,
DateTime|int $minutes,
Closure $callback)
Get an item from the cache, or store the default value.
at line line 304
mixed
sear(
string $key,
Closure $callback)
Get an item from the cache, or store the default value forever.
at line line 316
mixed
rememberForever(
string $key,
Closure $callback)
Get an item from the cache, or store the default value forever.
at line line 353
TaggedCache
tags(
array|mixed $names)
Begin executing a new tags operation if the store supports it.
at line line 441
void
offsetSet(
string $key,
mixed $value)
Store an item in the cache for the default time.