Memcached
extends Cacher
in package
Uses
TSingleton
FinalYes
Tags
Table of Contents
Constants
- EXPIRATION_TIME = HOUR_IN_SECONDS * 2
Properties
- $cache_config : array<string|int, mixed>
- $enabled : bool
- $instance : ICacher
- $memcached : Memcached
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- delete() : bool
- {@inheritdoc}
- extends() : bool
- fetchAll() : array<string|int, mixed>
- {@inheritdoc}
- flush() : mixed
- {@inheritdoc}
- get() : mixed
- {@inheritdoc}
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- quit() : mixed
- {@inheritdoc}
- replace() : mixed
- {@inheritdoc}
- set() : bool
- {@inheritdoc}
- init() : mixed
- {@inheritdoc}
Constants
EXPIRATION_TIME
public
int
EXPIRATION_TIME
= HOUR_IN_SECONDS * 2
Properties
$cache_config
protected
array<string|int, mixed>
$cache_config
= []
$enabled
protected
bool
$enabled
$instance
protected
static ICacher
$instance
$memcached
protected
Memcached
$memcached
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
delete()
{@inheritdoc}
public
delete(mixed $key[, mixed $time = 0 ]) : bool
Parameters
- $key : mixed
- $time : mixed = 0
Tags
Return values
boolextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolfetchAll()
{@inheritdoc}
public
fetchAll() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>flush()
{@inheritdoc}
public
flush() : mixed
Tags
get()
{@inheritdoc}
public
get(mixed $key) : mixed
Parameters
- $key : mixed
Tags
getInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassquit()
{@inheritdoc}
public
quit() : mixed
Tags
replace()
{@inheritdoc}
public
replace(mixed $key, mixed $value[, mixed $expiration = 0 ]) : mixed
Parameters
- $key : mixed
- $value : mixed
- $expiration : mixed = 0
Tags
set()
{@inheritdoc}
public
set(mixed $key, mixed $value[, mixed $expiration = Memcached::EXPIRATION_TIME ]) : bool
Parameters
- $key : mixed
- $value : mixed
- $expiration : mixed = Memcached::EXPIRATION_TIME
Tags
Return values
boolinit()
{@inheritdoc}
protected
init() : mixed