ParseStorageInterface
in
Class ParseStorageInterface - Specifies an interface for implementing persistence.
Tags
Table of Contents
- clear() : null
- Clear all the values in storage.
- get() : mixed
- Gets the value for a key from storage.
- getAll() : array<string|int, mixed>
- Get all key-value pairs from storage.
- getKeys() : array<string|int, mixed>
- Get all keys in storage.
- remove() : null
- Remove a key from storage.
- save() : null
- Save the data, if necessary. This would be a no-op when using the $_SESSION implementation, but could be used for saving to file or database as an action instead of on every set.
- set() : null
- Sets a key-value pair in storage.
Methods
clear()
Clear all the values in storage.
public
clear() : null
Return values
null —get()
Gets the value for a key from storage.
public
get(string $key) : mixed
Parameters
- $key : string
-
The key to get the value for
Return values
mixed —getAll()
Get all key-value pairs from storage.
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —getKeys()
Get all keys in storage.
public
getKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —remove()
Remove a key from storage.
public
remove(string $key) : null
Parameters
- $key : string
-
The key to remove.
Return values
null —save()
Save the data, if necessary. This would be a no-op when using the $_SESSION implementation, but could be used for saving to file or database as an action instead of on every set.
public
save() : null
Return values
null —set()
Sets a key-value pair in storage.
public
set(string $key, mixed $value) : null
Parameters
- $key : string
-
The key to set
- $value : mixed
-
The value to set