Storage
Less than 1 minute
Storage
Methods
__construct
Construct the storage.
public __construct(array $config): voidParameters
| Parameter | Type | Description |
|---|---|---|
$config | array |
isEmpty
Returns true if and only if storage is empty.
public isEmpty(): boolread
Returns data from storage.
public read(): voidwrite
Writes data to storage.
public write(array $data): voidParameters
| Parameter | Type | Description |
|---|---|---|
$data | array |
has
Checks if a key exists in storage.
public has(string $key): boolParameters
| Parameter | Type | Description |
|---|---|---|
$key | string |
get
Gets a value from storage.
public get(string $key): mixedParameters
| Parameter | Type | Description |
|---|---|---|
$key | string |
set
Sets a value in storage.
public set(string $key, mixed $value): voidParameters
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$value | mixed |
Unsets a value in storage.
public (string $key): voidParameters
| Parameter | Type | Description |
|---|---|---|
$key | string |
clear
Clears data from storage.
public clear(): voidgetToken
Returns the storage session token.
public getToken(): voidGenerated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000