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