Preparing search index...
The search index is not available
unit-redis-ness
unit-redis-ness
server/server-context
IServerContext
Interface IServerContext
interface
IServerContext
{
addClient
(
clientId
,
clientSession
)
:
void
;
addListener
(
event
,
listener
)
:
IServerContext
;
emit
(
event
,
...
args
)
:
boolean
;
eventNames
(
)
:
(
string
|
symbol
)
[]
;
flush
(
)
:
void
;
getClientCount
(
)
:
number
;
getClients
(
)
:
Dictionary
<
string
,
Session
>
;
getCommand
(
name
)
:
IRespCommand
;
getDatabase
(
id
)
:
Database
;
getHost
(
)
:
string
;
getMaxListeners
(
)
:
number
;
getPort
(
)
:
number
;
getScript
(
sha1
)
:
string
;
getValue
(
key
)
:
any
;
listenerCount
(
type
)
:
number
;
listeners
(
event
)
:
Function
[]
;
off
(
event
,
listener
)
:
IServerContext
;
on
(
event
,
listener
)
:
IServerContext
;
once
(
event
,
listener
)
:
IServerContext
;
prependListener
(
event
,
listener
)
:
IServerContext
;
prependOnceListener
(
event
,
listener
)
:
IServerContext
;
publish
(
channel
,
message
)
:
number
;
putValue
(
key
,
value
)
:
void
;
rawListeners
(
event
)
:
Function
[]
;
removeAllListeners
(
event
?
)
:
IServerContext
;
removeClient
(
clientId
)
:
void
;
removeListener
(
event
,
listener
)
:
IServerContext
;
removeValue
(
key
)
:
any
;
scriptExists
(
sha1
)
:
boolean
;
setMaxListeners
(
n
)
:
IServerContext
;
setScript
(
code
)
:
string
;
}
Hierarchy
EventEmitter
IServerContext
Implemented by
RespServerContext
Index
Methods
add
Client
add
Listener
emit
event
Names
flush
get
Client
Count
get
Clients
get
Command
get
Database
get
Host
get
Max
Listeners
get
Port
get
Script
get
Value
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
publish
put
Value
raw
Listeners
remove
All
Listeners
remove
Client
remove
Listener
remove
Value
script
Exists
set
Max
Listeners
set
Script
Methods
add
Client
add
Client
(
clientId
,
clientSession
)
:
void
Parameters
clientId
:
string
clientSession
:
Session
Returns
void
add
Listener
add
Listener
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
emit
emit
(
event
,
...
args
)
:
boolean
Parameters
event
:
string
|
symbol
Rest
...
args
:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
(
string
|
symbol
)
[]
Returns
(
string
|
symbol
)
[]
flush
flush
(
)
:
void
Returns
void
get
Client
Count
get
Client
Count
(
)
:
number
Returns
number
get
Clients
get
Clients
(
)
:
Dictionary
<
string
,
Session
>
Returns
Dictionary
<
string
,
Session
>
get
Command
get
Command
(
name
)
:
IRespCommand
Parameters
name
:
string
Returns
IRespCommand
get
Database
get
Database
(
id
)
:
Database
Parameters
id
:
number
Returns
Database
get
Host
get
Host
(
)
:
string
Returns
string
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
get
Port
get
Port
(
)
:
number
Returns
number
get
Script
get
Script
(
sha1
)
:
string
Parameters
sha1
:
string
Returns
string
get
Value
get
Value
(
key
)
:
any
Parameters
key
:
string
Returns
any
listener
Count
listener
Count
(
type
)
:
number
Parameters
type
:
string
|
symbol
Returns
number
listeners
listeners
(
event
)
:
Function
[]
Parameters
event
:
string
|
symbol
Returns
Function
[]
off
off
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
on
on
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
once
once
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
prepend
Listener
prepend
Listener
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
prepend
Once
Listener
prepend
Once
Listener
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
publish
publish
(
channel
,
message
)
:
number
Parameters
channel
:
string
message
:
string
Returns
number
put
Value
put
Value
(
key
,
value
)
:
void
Parameters
key
:
string
value
:
any
Returns
void
raw
Listeners
raw
Listeners
(
event
)
:
Function
[]
Parameters
event
:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?
)
:
IServerContext
Parameters
Optional
event
:
string
|
symbol
Returns
IServerContext
remove
Client
remove
Client
(
clientId
)
:
void
Parameters
clientId
:
string
Returns
void
remove
Listener
remove
Listener
(
event
,
listener
)
:
IServerContext
Parameters
event
:
string
|
symbol
listener
:
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Returns
IServerContext
remove
Value
remove
Value
(
key
)
:
any
Parameters
key
:
string
Returns
any
script
Exists
script
Exists
(
sha1
)
:
boolean
Parameters
sha1
:
string
Returns
boolean
set
Max
Listeners
set
Max
Listeners
(
n
)
:
IServerContext
Parameters
n
:
number
Returns
IServerContext
set
Script
set
Script
(
code
)
:
string
Parameters
code
:
string
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
add
Client
add
Listener
emit
event
Names
flush
get
Client
Count
get
Clients
get
Command
get
Database
get
Host
get
Max
Listeners
get
Port
get
Script
get
Value
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
publish
put
Value
raw
Listeners
remove
All
Listeners
remove
Client
remove
Listener
remove
Value
script
Exists
set
Max
Listeners
set
Script
unit-redis-ness
client
dictionary
logger
lua/bit/lua-bit
lua/call/lua-redis
resp/command/client-command
resp/command/db/dbsize-command
resp/command/db/flushall-command
resp/command/db/flushdb-command
resp/command/db/select-command
resp/command/discard-command
resp/command/exec-command
resp/command/hash/hget-command
resp/command/hash/hgetall-command
resp/command/hash/hset-command
resp/command/key/del-command
resp/command/key/exists-command
resp/command/key/expire-command
resp/command/key/keys-command
resp/command/key/move-command
resp/command/key/pexpire-command
Loading...