Configuration for the KV Store component.
KVStore constructor.
public __construct(Main $server, array $config): void
Parameter | Type | Description |
---|
$server | Main | the server instance |
$config | array | configuration for the KV Store component |
public enablePersistentStorage(int $compactTime = 3600): bool
Parameter | Type | Description |
---|
$compactTime | int | |
public disablePersistentStorage(): void
public expireKeys(): void
public touch(string $namespace, string $key): void
Parameter | Type | Description |
---|
$namespace | string | |
$key | string | |
public process(Client $client, PacketType $command, mixed $payload): void
Parameter | Type | Description |
---|
$client | Client | |
$command | PacketType | |
$payload | mixed | |
public get(Client $client, mixed $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | mixed | |
$namespace | string | |
public set(Client $client, mixed $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | mixed | |
$namespace | string | |
public has(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public del(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public (Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public clear(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public pull(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public push(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public pop(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public shift(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public unshift(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public count(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public incr(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public decr(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public keys(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
public values(Client $client, \stdClass $payload, string $namespace): void
Parameter | Type | Description |
---|
$client | Client | |
$payload | \stdClass | |
$namespace | string | |
Generated by Hazaar API Doc Generator on Wed, 25 Jun 2025 06:07:11 +0000