\erdiko\coreCache

Cache class

Summary

Methods
Properties
Constants
getCacheObject()
get()
put()
has()
pull()
forget()
forgetAll()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$instance

$instance : 

Cache singleton instance

Type

Methods

getCacheObject()

getCacheObject(string $cacheConfig) : object

Get the cache instance

Parameters

string $cacheConfig

Returns

object

get()

get(string $key, string $cacheConfig)

Get the value stored at the given key

Parameters

string $key
string $cacheConfig

put()

put(string $key, mixed $value, string $cacheConfig)

Put the supplied value into the given key

Parameters

string $key
mixed $value
string $cacheConfig

has()

has(string $key, string $cacheConfig) : boolean

Check if the key exist

Parameters

string $key
string $cacheConfig

Returns

boolean

pull()

pull(string $key, string $cacheConfig) : mixed

Retrieve the cache value and then delete it before returning that value

Parameters

string $key
string $cacheConfig

Returns

mixed

forget()

forget(string $key, string $cacheConfig) : boolean

Remove an item from the cache

Parameters

string $key
string $cacheConfig

Returns

boolean

forgetAll()

forgetAll(string $cacheConfig) : boolean

Forget all cache keys (Purge)

Parameters

string $cacheConfig

Returns

boolean