MemcacheContainer
class MemcacheContainer (View source)
Remove direct interaction with Memcache object for ease of mocking in tests.
Methods
__construct()
Initialises a Memcache instance
bool
close()
Closes the Memcache instance.
string
get(string $key)
Finds the value associated with input key, from Memcache.
bool
set(string $key, string $value, int $expire)
Inserts a key value pair, with expiry time, into Memcache.
bool
delete(string $key)
Removes the key value pair, keyed with the input variable.
Details
at line 40
__construct()
Initialises a Memcache instance
at line 48
bool
close()
Closes the Memcache instance.
at line 57
string
get(string $key)
Finds the value associated with input key, from Memcache.
at line 68
bool
set(string $key, string $value, int $expire)
Inserts a key value pair, with expiry time, into Memcache.
at line 77
bool
delete(string $key)
Removes the key value pair, keyed with the input variable.