The backend options.
protected int $weight = 10
The backends list of capabilities.
private array $capabilities
Standard capabilities are:
- store_objects - Backend can directly store & return objects. Whether the backend itself really can (like APCu) or the backend class takes care of this.
- compress - Can compress objects being stored. If the backend can do this, then we don't want the frontend to ever do it.
- array - Can return all elements in the cache as an associative array
- expire_ns - Backend supports storage TTLs on the namespace as a whole.
- expire_val - Backend supports storage TTLs on individual values stored within the namespace
- keepalive - When a value is accessed it's TTL can be reset to keep it alive in cache.
public __construct(array $options, string $namespace): void
Parameter | Type | Description |
---|
$options | array | |
$namespace | string | |
public __destruct(): void
public can(string $key): bool
Parameter | Type | Description |
---|
$key | string | |
public setOption(string $key, mixed $value): void
Parameter | Type | Description |
---|
$key | string | |
$value | mixed | |
public lock(string $key): bool
Parameter | Type | Description |
---|
$key | string | |
public unlock(string $key): bool
Parameter | Type | Description |
---|
$key | string | |
protected addCapabilities(string $args): void
Parameter | Type | Description |
---|
$args | string | |
protected configure(array $options): void
Parameter | Type | Description |
---|
$options | array | |
Generated by Hazaar API Doc Generator