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.

Parameters

string $key
mixed $value
int $minutes

Return Value

bool

at line 17
bool forever(string $key, mixed $value)

Store an item indefinitely.

Parameters

string $key
mixed $value

Return Value

bool

at line 22
mixed get(string $key)

Retrieve an item from storage.

Parameters

string $key

Return Value

mixed

at line 27
bool destroy(string $key)

Remove an item from storage.

Parameters

string $key

Return Value

bool

at line 32
bool flush()

Remove all items from storage.

Return Value

bool