ParseMemoryStorage

Implements \Parse\ParseStorageInterface

Class ParseMemoryStorage - Uses non-persisted memory for storage.

This is used by default if a PHP Session is not active.

author

Fosco Marotto [email protected]

package

Parse

Methods

Clear all the values in storage.

clear() : null

Response

null

Gets the value for a key from storage.

get(string $key) : mixed

Arguments

$key

string

The key to get the value for

Response

mixed

Get all key-value pairs from storage.

getAll() : array

Response

array

Get all keys in storage.

getKeys() : array

Response

array

Remove a key from storage.

remove(string $key) : void

Arguments

$key

string

The key to remove.

Save the data, if necessary. Not implemented.

save() : null

Response

null

Sets a key-value pair in storage.

set(string $key, mixed $value) : void

Arguments

$key

string

The key to set

$value

mixed

The value to set

Properties

Memory storage

storage : array
var

Type(s)

array