Preparing search index...
The search index is not available
SessionKit - v0.1.0
SessionKit
core/src
SessionStore
Interface SessionStore<TPayload>
Storage abstraction for session lifecycle operations.
interface
SessionStore
<
TPayload
>
{
get
(
sessionId
:
string
)
:
Promise
<
null
|
StoredSession
<
TPayload
>
>
;
set
(
sessionId
:
string
,
value
:
StoredSession
<
TPayload
>
,
ttlSeconds
:
number
,
)
:
Promise
<
void
>
;
del
(
sessionId
:
string
)
:
Promise
<
void
>
;
touch
(
sessionId
:
string
,
ttlSeconds
:
number
)
:
Promise
<
void
>
;
close
()
:
Promise
<
void
>
;
}
Type Parameters
TPayload
Implemented by
MapSessionStore
Index
Methods
get
set
del
touch?
close?
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
>
Optional
touch
touch
(
sessionId
:
string
,
ttlSeconds
:
number
)
:
Promise
<
void
>
Parameters
sessionId
:
string
ttlSeconds
:
number
Returns
Promise
<
void
>
Optional
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
get
set
del
touch
close
SessionKit - v0.1.0
Loading...
Storage abstraction for session lifecycle operations.