ParseMemoryStorage
in package
implements
ParseStorageInterface
Class ParseMemoryStorage - Uses non-persisted memory for storage.
This is used by default if a PHP Session is not active.
Tags
Interfaces, Classes and Traits
- ParseStorageInterface
- Class ParseStorageInterface - Specifies an interface for implementing persistence.
Table of Contents
- $storage : array<string|int, mixed>
- Memory storage
- 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() : void
- Remove a key from storage.
- save() : null
- Save the data, if necessary. Not implemented.
- set() : void
- Sets a key-value pair in storage.
Properties
$storage
Memory storage
private
array<string|int, mixed>
$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) : void
Parameters
- $key : string
-
The key to remove.
Return values
void —save()
Save the data, if necessary. Not implemented.
public
save() : null
Return values
null —set()
Sets a key-value pair in storage.
public
set(string $key, mixed $value) : void
Parameters
- $key : string
-
The key to set
- $value : mixed
-
The value to set