Storage
Less than 1 minute
Storage
Methods
__construct
Construct the storage.
public __construct(array $config): void
Parameters
Parameter | Type | Description |
---|---|---|
$config | array |
isEmpty
Returns true if and only if storage is empty.
public isEmpty(): bool
read
Returns data from storage.
public read(): void
write
Writes data to storage.
public write(array $data): void
Parameters
Parameter | Type | Description |
---|---|---|
$data | array |
has
Checks if a key exists in storage.
public has(string $key): bool
Parameters
Parameter | Type | Description |
---|---|---|
$key | string |
get
Gets a value from storage.
public get(string $key): mixed
Parameters
Parameter | Type | Description |
---|---|---|
$key | string |
set
Sets a value in storage.
public set(string $key, mixed $value): void
Parameters
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Unsets a value in storage.
public (string $key): void
Parameters
Parameter | Type | Description |
---|---|---|
$key | string |
clear
Clears data from storage.
public clear(): void
getToken
Returns the storage session token.
public getToken(): void
Generated by Hazaar API Doc Generator