Namespace: redis
Table of contents
Functions
Functions
Connect
▸ Connect(host, port, password): boolean | null
Connect tries to connect redis server with password
Parameters
| Name | Type |
|---|---|
host | string |
port | number |
password | string |
Returns
boolean | null
Example
Defined in
redis.ts:11GetServerInfo
▸ GetServerInfo(host, port): string | null
GetServerInfo returns the server info for a redis server
Parameters
| Name | Type |
|---|---|
host | string |
port | number |
Returns
string | null
Example
Defined in
redis.ts:25GetServerInfoAuth
▸ GetServerInfoAuth(host, port, password): string | null
GetServerInfoAuth returns the server info for a redis server
Parameters
| Name | Type |
|---|---|
host | string |
port | number |
password | string |
Returns
string | null
Example
Defined in
redis.ts:39IsAuthenticated
▸ IsAuthenticated(host, port): boolean | null
IsAuthenticated checks if the redis server requires authentication
Parameters
| Name | Type |
|---|---|
host | string |
port | number |
Returns
boolean | null
Example
Defined in
redis.ts:53RunLuaScript
▸ RunLuaScript(host, port, password, script): any | null
RunLuaScript runs a lua script on the redis server
Parameters
| Name | Type |
|---|---|
host | string |
port | number |
password | string |
script | string |
Returns
any | null
Example