Heratio Framework API Reference

CacheService
in package

Cache Service - Replaces QubitCache (38 uses)

Table of Contents

Methods

clear()  : bool
get()  : mixed
getInstance()  : self
getLabel()  : string|null
Get label for a term/object by ID (replaces QubitCache::getLabel).
has()  : bool
Check if a key exists in cache.
remove()  : bool
removePattern()  : int
set()  : bool

Methods

get()

public get(string $key) : mixed
Parameters
$key : string

getInstance()

public static getInstance() : self
Return values
self

getLabel()

Get label for a term/object by ID (replaces QubitCache::getLabel).

public static getLabel(int $id[, string $class = 'QubitTerm' ]) : string|null
Parameters
$id : int
$class : string = 'QubitTerm'
Return values
string|null

has()

Check if a key exists in cache.

public has(string $key) : bool
Parameters
$key : string
Return values
bool

remove()

public remove(string $key) : bool
Parameters
$key : string
Return values
bool

removePattern()

public removePattern(string $pattern) : int
Parameters
$pattern : string
Return values
int

set()

public set(string $key, mixed $value[, int $ttl = 3600 ]) : bool
Parameters
$key : string
$value : mixed
$ttl : int = 3600
Return values
bool

        
On this page

Search results