Auth0-PHP

MemoryStore
in package
implements StoreInterface

In memory storage. This is useful only in tests. Do not use this in production.

Tags
author

Tobias Nyholm tobias.nyholm@gmail.com

Interfaces, Classes, Traits and Enums

StoreInterface
Interface StoreInterface.

Table of Contents

$data  : array<string|int, mixed>
defer()  : void
This has no effect when using memory as a storage medium.
delete()  : void
Removes a value identified by $key from memory.
get()  : mixed
Return value from memory.
purge()  : void
Removes all stored values from memory.
set()  : void
Store value in memory.

Properties

Methods

defer()

This has no effect when using memory as a storage medium.

public defer([bool $deferring = true ]) : void
Parameters
$deferring : bool = true

whether to defer persisting the storage state

Tags
codeCoverageIgnore
Return values
void

delete()

Removes a value identified by $key from memory.

public delete(string $key) : void
Parameters
$key : string

key of value to remove

Return values
void

get()

Return value from memory.

public get(string $key[, mixed $default = null ]) : mixed

If the value is not set, returns $default.

Parameters
$key : string

session key to set

$default : mixed = null

default to return if nothing was found

Return values
mixed

purge()

Removes all stored values from memory.

public purge() : void
Return values
void

set()

Store value in memory.

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

session key to set

$value : mixed

value to use

Return values
void

Search results