class LaravelCache implements CacheInterface

laravel 의 cache 기능을 이용한 처리를 담당

Properties

protected Repository $cache laravel cache instance
protected integer $minutes expire time

Methods

__construct(Repository $cache, int $minutes = 60)

constructor

mixed
get(string $key)

getter

void
put(string $key, mixed $value, int $minutes = null)

setter

bool
has(string $key)

has

void
forget(string $key)

remove

Repository
getCacheManager()

cache manager instance

Details

at line 53
__construct(Repository $cache, int $minutes = 60)

constructor

Parameters

Repository $cache laravel cache instance
int $minutes expire time

at line 65
mixed get(string $key)

getter

Parameters

string $key key name

Return Value

mixed

at line 78
void put(string $key, mixed $value, int $minutes = null)

setter

Parameters

string $key key name
mixed $value the value
int $minutes expire time

Return Value

void

at line 93
bool has(string $key)

has

Parameters

string $key key name

Return Value

bool

at line 104
void forget(string $key)

remove

Parameters

string $key key name

Return Value

void

at line 114
Repository getCacheManager()

cache manager instance

Return Value

Repository