\Hazaar\Cache\Backend
Memcached
The Memcached cache backend.

This backend uses the PHP memcached module to communicate with a memcached server. It is pretty fast and allows for some basic “clustering” (that isn’t really clustering but thats what the memcached guys call it). It’s really just “not-so-fancy” partitioning.

  • server – The memcached server to connect to, or an array of servers. Default: localhost.
  • port – The port to connect to the server on. Default: 11211
  • use_compression – Enables compression on the communication link. Default: false

Tags

Since

2.0.0

Summary
Methods Properties Constants
get
has
key
set
No constants
Properties
$memcached
$memcached
$namespace
$namespace
$weight
$weight
Methods
Static
available()
available()
clear()
clear()
get()
get($key)

Parameters

$key

No description

has()
has($key)

Parameters

$key

No description

init()
init($namespace)

Parameters

$namespace

No description

key()
key($key)

Parameters

$key

No description

remove()
remove($key)

Parameters

$key

No description

set()
set($key, $value, $timeout = null)

Parameters

$key

No description

$value

No description

$timeout

No description