StorageContract
interface StorageContract
Methods
bool
add(string $key, mixed $value, int $minutes)
Store an item for the given number of minutes.
bool
forever(string $key, mixed $value)
Store an item indefinitely.
mixed
get(string $key)
Retrieve an item from storage.
bool
destroy(string $key)
Remove an item from storage.
bool
flush()
Remove all items from storage.
Details
at line 12
bool
add(string $key, mixed $value, int $minutes)
Store an item for the given number of minutes.
at line 17
bool
forever(string $key, mixed $value)
Store an item indefinitely.
at line 22
mixed
get(string $key)
Retrieve an item from storage.
at line 27
bool
destroy(string $key)
Remove an item from storage.
at line 32
bool
flush()
Remove all items from storage.