\PHKCache

Summary

Methods
Properties
Constants
cacheID()
setCacheMaxSize()
cacheName()
cachePresent()
get()
set()
No public properties found
TTL
No protected methods found
No protected properties found
N/A
setCacheObject()
$caches
$cacheName
$cache
$cache_maxsize
N/A

Constants

TTL

TTL

Properties

$caches

$caches : 

Type

$cacheName

$cacheName : 

Type

$cache

$cache : Object|false|null

Type

Object|false|null — The cache system we are using for PHK instances False means 'no cache'. null until set by setCacheObject().

$cache_maxsize

$cache_maxsize : 

Type

Methods

cacheID()

cacheID(  $prefix,   $key) 

Parameters

$prefix
$key

setCacheMaxSize()

setCacheMaxSize(  $size) 

Parameters

$size

cacheName()

cacheName() 

cachePresent()

cachePresent() 

get()

get(string  $id) : string|null

Gets an element from cache

Fast path

Parameters

string $id

Cache key

Returns

string|null —

The data. Null if not found

set()

set(string  $id, string  $data) : void

Writes an element to cache

Parameters

string $id

Cache key

string $data

Data to cache

setCacheObject()

setCacheObject()