\Pivot\Core\CacheDatabaseCacheAdaptor

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
getCache()
$entityManager
$cacheConfig
$key
$data
N/A

Properties

$entityManager

$entityManager : \Pivot\Core\Cache\Doctrine\ORM\EntityManager

EntityManager

Type

\Pivot\Core\Cache\Doctrine\ORM\EntityManager

$cacheConfig

$cacheConfig : array

Cache Config

Type

array

$key

$key : string

Cache key

Type

string

$data

$data : string

Cache Data

Type

string

Methods

__construct()

__construct(\Doctrine\ORM\EntityManager  $commonEm,   $cacheConfig) 

DatabaseCacheAdaptor

Parameters

\Doctrine\ORM\EntityManager $commonEm
$cacheConfig

start()

start(string  $key) : boolean

We dont need to do anything yet, if nothing is called lets not connect.

Parameters

string $key

bearerToken

Returns

boolean

stop()

stop() : boolean

Returns

boolean

get()

get(string  $key = null) : mixed

Parameters

string $key

key search value

Returns

mixed

write()

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

Write cache to session

Parameters

string $data
string $key

key to store the data under

Returns

boolean

getCache()

getCache()