cache

Cache Class provided by System for caching in the Database.

package

SYSTEM\CACHE

Methods

Delete Data from Cache

del(integer $cache, \SYSTEM\CACHE\sha1 $ident) : boolean
static

Arguments

$cache

integer

Cache Group to delete Data from

$ident

\SYSTEM\CACHE\sha1

String Identifier for the Content

Response

boolean

Returns boolean if successful or not

Get Data from Cache

get(integer $cache, \SYSTEM\CACHE\sha1 $ident, boolean $header = false) : mixed
static

Arguments

$cache

integer

Cache Group to query

$ident

\SYSTEM\CACHE\sha1

String Identifier for the cached Content

$header

boolean

Send Header

Response

mixed

Returns the requested Cache Content or NULL

Put Data into the Cache

put(integer $cache, \SYSTEM\CACHE\sha1 $ident, string $type, string $data, boolean $fail_on_exist = false) : mixed
static

Arguments

$cache

integer

Cache Group to put Data to

$ident

\SYSTEM\CACHE\sha1

String Identifier for the Content

$type

string

String representing the Header-Type which will be sent with the content eg. JS for javascript

$data

string

Content to be cached

$fail_on_exist

boolean

Fail on existing record

Response

mixed

Returns the cached Content or NULL