Preparing search index...
The search index is not available
SessionKit - v0.1.0
SessionKit
core/src
MapSessionStore
Class MapSessionStore<TPayload>
In-memory
SessionStore
intended for local development and tests.
Type Parameters
TPayload
Implements
SessionStore
<
TPayload
>
Index
Constructors
constructor
Methods
get
set
del
touch
close
cleanup
Properties
map
cleanup
Timer
options?
Constructors
constructor
new
MapSessionStore
<
TPayload
>
(
options
?:
{
cleanupIntervalSeconds
?:
number
;
maxSize
?:
number
}
,
)
:
MapSessionStore
<
TPayload
>
Type Parameters
TPayload
Parameters
Optional
options
:
{
cleanupIntervalSeconds
?:
number
;
maxSize
?:
number
}
Returns
MapSessionStore
<
TPayload
>
Methods
get
get
(
sessionId
:
string
)
:
Promise
<
null
|
StoredSession
<
TPayload
>
>
Parameters
sessionId
:
string
Returns
Promise
<
null
|
StoredSession
<
TPayload
>
>
set
set
(
sessionId
:
string
,
value
:
StoredSession
<
TPayload
>
,
ttlSeconds
:
number
,
)
:
Promise
<
void
>
Parameters
sessionId
:
string
value
:
StoredSession
<
TPayload
>
ttlSeconds
:
number
Returns
Promise
<
void
>
del
del
(
sessionId
:
string
)
:
Promise
<
void
>
Parameters
sessionId
:
string
Returns
Promise
<
void
>
touch
touch
(
sessionId
:
string
,
ttlSeconds
:
number
)
:
Promise
<
void
>
Parameters
sessionId
:
string
ttlSeconds
:
number
Returns
Promise
<
void
>
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
cleanup
cleanup
()
:
void
Returns
void
Properties
Private
Readonly
map
map
:
Map
<
string
,
Entry
<
TPayload
>
>
= ...
Private
Readonly
cleanup
Timer
cleanupTimer
:
null
|
Timeout
Private
Optional
Readonly
options
options
?:
{
cleanupIntervalSeconds
?:
number
;
maxSize
?:
number
}
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
set
del
touch
close
cleanup
Properties
map
cleanup
Timer
options
SessionKit - v0.1.0
Loading...
In-memory SessionStore intended for local development and tests.