Cache

class Cache extends AbstractCache (View source)

Properties

protected Repository $repository The cache repository implementation.
protected string $key The cache key.
protected int $expire The cache expiration time in minutes.

Methods

__construct(Repository $repository, string $key = 'flysystem', int|null $expire = null)

Create a new cache instance.

void load()

Load the cache.

void save()

Persist the cache.

Details

__construct(Repository $repository, string $key = 'flysystem', int|null $expire = null)

Create a new cache instance.

Parameters

Repository $repository
string $key
int|null $expire

void load()

Load the cache.

Return Value

void

void save()

Persist the cache.

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Filesystem/Cache.html