Backend
Less than 1 minute
Backend
- Full name:
\Hazaar\Cache\Interfaces\Backend
Methods
init
public init(string $namespace): void
Parameters:
Parameter | Type | Description |
---|---|---|
$namespace | string |
has
public has(string $key, bool $check_empty = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$check_empty | bool |
get
public get(string $key): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
set
public set(string $key, mixed $value, int $timeout): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | mixed | |
$timeout | int |
remove
public remove(string $key): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
clear
public clear(): bool
toArray
public toArray(): array<string,mixed>
count
public count(): int
setOption
public setOption(string $key, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Automatically generated on 2024-11-14