StoreInterface
in
Table of Contents
Methods
- defer() : void
- Defer saving state changes to destination to improve performance during blocks of changes.
- delete() : void
- Remove a value from the store.
- get() : mixed
- Get a value from the store by a given key.
- purge() : void
- Remove all stored values.
- set() : void
- Set a value on the store.
Methods
defer()
Defer saving state changes to destination to improve performance during blocks of changes.
public
defer(bool $deferring) : void
Parameters
- $deferring : bool
delete()
Remove a value from the store.
public
delete(string $key) : void
Parameters
- $key : string
-
key to delete
get()
Get a value from the store by a given key.
public
get(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
-
key to get
- $default : mixed = null
-
return value if key not found
purge()
Remove all stored values.
public
purge() : void
set()
Set a value on the store.
public
set(string $key, mixed $value) : void
Parameters
- $key : string
-
key to set
- $value : mixed
-
value to set