bunway
Preparing search index...
SessionStore
Interface SessionStore
interface
SessionStore
{
all
?
()
:
Promise
<
SessionData
[]
>
;
clear
?
()
:
Promise
<
void
>
;
destroy
(
sid
:
string
)
:
Promise
<
void
>
;
emit
?
(
event
:
string
,
...
args
:
any
[]
)
:
boolean
;
get
(
sid
:
string
)
:
Promise
<
SessionData
|
null
>
;
length
?
()
:
Promise
<
number
>
;
on
?
(
event
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
;
set
(
sid
:
string
,
session
:
SessionData
,
maxAge
?:
number
)
:
Promise
<
void
>
;
touch
?
(
sid
:
string
,
session
:
SessionData
)
:
Promise
<
void
>
;
}
Implemented by
FileStore
MemoryStore
Index
Methods
all?
clear?
destroy
emit?
get
length?
on?
set
touch?
Methods
Optional
all
all
?
()
:
Promise
<
SessionData
[]
>
Returns
Promise
<
SessionData
[]
>
Optional
clear
clear
?
()
:
Promise
<
void
>
Returns
Promise
<
void
>
destroy
destroy
(
sid
:
string
)
:
Promise
<
void
>
Parameters
sid
:
string
Returns
Promise
<
void
>
Optional
emit
emit
?
(
event
:
string
,
...
args
:
any
[]
)
:
boolean
Parameters
event
:
string
...
args
:
any
[]
Returns
boolean
get
get
(
sid
:
string
)
:
Promise
<
SessionData
|
null
>
Parameters
sid
:
string
Returns
Promise
<
SessionData
|
null
>
Optional
length
length
?
()
:
Promise
<
number
>
Returns
Promise
<
number
>
Optional
on
on
?
(
event
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event
:
string
listener
:
(
...
args
:
any
[]
)
=>
void
Returns
this
set
set
(
sid
:
string
,
session
:
SessionData
,
maxAge
?:
number
)
:
Promise
<
void
>
Parameters
sid
:
string
session
:
SessionData
Optional
maxAge
:
number
Returns
Promise
<
void
>
Optional
touch
touch
?
(
sid
:
string
,
session
:
SessionData
)
:
Promise
<
void
>
Parameters
sid
:
string
session
:
SessionData
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
all
clear
destroy
emit
get
length
on
set
touch
bunway
Loading...