Define that implement a store usage for a client

package Ant\ChateaClient\Service\Client

 Methods

Clear all data from the persistent storage

clearAllPersistentData() : void

Clear the data with $key from the persistent storage

clearPersistentData(string $key) : void

Parameters

$key

string

Get the data for $key, persisted by Client::setPersistentData()

getPersistentData(string $key, boolean $default) : mixed

Parameters

$key

string

The key of the data to retrieve

$default

boolean

The default value to return if $key is not found

Returns

mixed

Stores the given ($key, $value) pair, so that future calls to getPersistentData($key) return $value. This call may be in another request.

setPersistentData(string $key, array $value) : void

Parameters

$key

string

$value

array