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
clear()
public
clear() : bool
Return values
boolget()
public
get(string $key) : mixed
Parameters
- $key : string
getInstance()
public
static getInstance() : self
Return values
selfgetLabel()
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|nullhas()
Check if a key exists in cache.
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolremove()
public
remove(string $key) : bool
Parameters
- $key : string
Return values
boolremovePattern()
public
removePattern(string $pattern) : int
Parameters
- $pattern : string
Return values
intset()
public
set(string $key, mixed $value[, int $ttl = 3600 ]) : bool
Parameters
- $key : string
- $value : mixed
- $ttl : int = 3600