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