BexioCache
in package
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- cmp_content() : mixed
- content_hash() : string
- delete() : bool
- get() : string|false
- get_age() : int
- iterate_collection() : Generator
- load() : string|false
- put() : bool
- ref_hash() : string
- ref_to_path() : string
- remove() : bool
- set_to_collection() : bool
- When set into collection, this will be for iterating only so performance penalty is not a concern when reading back. This is to be used in some specific emergency case where slowness is not a problem.
- store() : bool
Properties
$cache
protected
mixed
$cache
$duration
protected
mixed
$duration
= 30
$path
protected
mixed
$path
Methods
__construct()
public
__construct(Memcached $memcache, string $path[, int $duration = 30 ]) : mixed
Parameters
- $memcache : Memcached
- $path : string
- $duration : int = 30
cmp_content()
public
cmp_content(string $reference, string $content) : mixed
Parameters
- $reference : string
- $content : string
content_hash()
public
content_hash(string $content) : string
Parameters
- $content : string
Return values
stringdelete()
public
delete(string $reference) : bool
Parameters
- $reference : string
Return values
boolget()
public
get(string $reference) : string|false
Parameters
- $reference : string
Return values
string|falseget_age()
public
get_age(string $reference) : int
Parameters
- $reference : string
Return values
intiterate_collection()
public
iterate_collection(string $collection) : Generator
Parameters
- $collection : string
Return values
Generatorload()
public
load(string $reference) : string|false
Parameters
- $reference : string
Return values
string|falseput()
public
put(string $reference, string $content) : bool
Parameters
- $reference : string
- $content : string
Return values
boolref_hash()
public
ref_hash(string $reference) : string
Parameters
- $reference : string
Return values
stringref_to_path()
public
ref_to_path(string $reference) : string
Parameters
- $reference : string
Return values
stringremove()
public
remove(string $reference) : bool
Parameters
- $reference : string
Return values
boolset_to_collection()
When set into collection, this will be for iterating only so performance penalty is not a concern when reading back. This is to be used in some specific emergency case where slowness is not a problem.
public
set_to_collection(string $reference, string $path) : bool
Parameters
- $reference : string
- $path : string
Return values
boolstore()
public
store(string $reference, string $content) : bool
Parameters
- $reference : string
- $content : string