\JCORE\CACHECACHE_API2

Class CACHE_API2

Summary

Methods
Properties
Constants
__construct()
verify_cache_source()
raw()
getValue()
setValue()
updateSharedValue()
setSharedValue()
getSharedValue()
retrieve()
unserialize()
__destruct()
No public properties found
No constants found
No protected methods found
$cacheCfg
N/A
No private methods found
$logger
N/A

Properties

$cacheCfg

$cacheCfg : array

an array to store tables definitions for MySQL/postgres or the equivelent for NoSQL/File stores

Type

array

$logger

$logger : string

logger

Type

string

Methods

__construct()

__construct() : null

Constructor, sets up the cache api and loads cache pool data nothing is set for the cache pool to save resources, connections are automatically set/checked on request cache implementations can be static or concrete

Returns

null

verify_cache_source()

verify_cache_source(  $CSN) : null

DESCRIPTOR: VERIFIES A CONNECTION OBJECT && RESOURCE

Parameters

$CSN

Returns

null

raw()

raw(  $CSN,   $query) : mixed

DESCRIPTOR: EXECUTE A QUERY exception handling and logging dealt with

Parameters

$CSN
$query

Returns

mixed —

result

getValue()

getValue(array  $args = array()) : null

getValue args["CSN"] args["KEY"] args["DATA"] args["CACHE_SERIALIZATION"] JSON NATIVE [serialize()] RAW [string] args["UNSERIALIZE_TYPE"] ARRAY OBJECT RAW [string]

Parameters

array $args

Returns

null

setValue()

setValue(  $args = array()) : null

setValue

Parameters

$args

Returns

null

updateSharedValue()

updateSharedValue(  $args = array()) : null

updateSharedValue

Parameters

$args

Returns

null

setSharedValue()

setSharedValue(  $args = array()) : null

setSharedValue

Parameters

$args

Returns

null

getSharedValue()

getSharedValue(  $args = array()) : null

getSharedValue

Parameters

$args

Returns

null

retrieve()

retrieve(  $CSN,   $query,   $returnArray = false) : mixed

DESCRIPTOR: EXECUTE A SELECT if returnArray === true the function will return the result as a PHP array use stdobj to get an object back

Parameters

$CSN
$query
$returnArray

Returns

mixed —

result

unserialize()

unserialize(  $result,   $type,   $CSN) : array

must be maintained allow passtrough PASSED DOWN TO THE CONNECCTION OBJECT DESCRIPTOR: coverts a SQL result to a PHP array

Parameters

$result
$type
$CSN

Returns

array —

result

__destruct()

__destruct() : NULL

DESCRIPTOR: __destruct

Returns

NULL