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
protected int $weight = 2
public init(string $namespace): void
Parameter | Type | Description |
---|
$namespace | string | |
public has(string $key, bool $checkEmpty): bool
Parameter | Type | Description |
---|
$key | string | |
$checkEmpty | bool | |
public get(string $key): mixed
Parameter | Type | Description |
---|
$key | string | |
public set(string $key, mixed $value, int $timeout): bool
Parameter | Type | Description |
---|
$key | string | |
$value | mixed | |
$timeout | int | |
public remove(string $key): bool
Parameter | Type | Description |
---|
$key | string | |
private key(string $key): string
Parameter | Type | Description |
---|
$key | string | |
Generated by Hazaar API Doc Generator on Fri, 25 Jul 2025 07:40:04 +0000