\Pivot\Core\CacheRedisCacheAdaptor

RedisCacheAdaptor class

Summary

Methods
Properties
Constants
__construct()
start()
stop()
get()
write()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$cacheConfig
$client
$key
$data
N/A

Properties

$cacheConfig

$cacheConfig : \Pivot\Core\Cache\config

Cache config

Type

\Pivot\Core\Cache\config

$client

$client : \Predis\Client

Redis Client

Type

\Predis\Client

$key

$key : string

Redis Key

Type

string

$data

$data : mixed

Redis Cache Data

Type

mixed

Methods

__construct()

__construct(  $cacheConfig) 

Parameters

$cacheConfig

start()

start(string  $key) : boolean

Parameters

string $key

bearerToken

Returns

boolean

stop()

stop() : boolean

Returns

boolean

get()

get(  $param = null) : mixed

Parameters

$param

Returns

mixed

write()

write(string  $data, string  $key = null) : boolean

Write cache to redis

Parameters

string $data
string $key

key to store the data under

Returns

boolean