\ManaPHP\CachingCacheInterface

Summary

Methods
Constants
exists()
get()
set()
delete()
remember()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

exists()

exists(string  $key) : boolean

Checks whether a specified key exists in the cache.

Parameters

string $key

Returns

boolean

get()

get(string  $key) : string|false

Retrieves a value from cache with a specified key.

Parameters

string $key

Returns

string|false

set()

set(string  $key, string  $value, integer  $ttl) : void

Stores a value identified by a key into cache.

Parameters

string $key
string $value
integer $ttl

delete()

delete(string  $key) 

Deletes a value with the specified key from cache

Parameters

string $key

remember()

remember(string  $key, integer  $ttl, callable  $callback) : mixed

Parameters

string $key
integer $ttl
callable $callback

Returns

mixed