Packages@robojs/mock
InMemoryStorage
Class: InMemoryStorage
In-memory session storage implementation Can be swapped for FlashcoreStorage in future
Implements
Constructors
new InMemoryStorage()
new InMemoryStorage(): InMemoryStorageReturns
Accessors
size
Get Signature
get size(): numberReturns
number
Implementation of
Methods
clear()
clear(): voidReturns
void
Implementation of
delete()
delete(id): booleanParameters
| Parameter | Type |
|---|---|
id | string |
Returns
boolean
Implementation of
get()
get(id): undefined | ISessionParameters
| Parameter | Type |
|---|---|
id | string |
Returns
undefined | ISession
Implementation of
set()
set(id, session): voidParameters
| Parameter | Type |
|---|---|
id | string |
session | ISession |
Returns
void
Implementation of
values()
values(): IterableIterator<ISession, any, any>Returns
IterableIterator<ISession, any, any>
