redis
- redis
Connect(host, port, password)⇒booleanGetServerInfo(host, port)⇒stringGetServerInfoAuth(host, port, password)⇒stringIsAuthenticated(host, port)⇒booleanRunLuaScript(host, port, password, script)
(redis).Connect(host, port, password) ⇒ boolean
Connect tries to connect redis server with password
Kind: inner method of redisReturns:
boolean - - The status of the connection.Throws:
error- The error encountered during connection.
| Param | Type | Description |
|---|---|---|
| host | string | The host of the redis server. |
| port | number | The port of the redis server. |
| password | string | The password for the redis server. |
(redis).GetServerInfo(host, port) ⇒ string
GetServerInfo returns the server info for a redis server
Kind: inner method of redisReturns:
string - - The server info.Throws:
error- The error encountered during getting server info.
| Param | Type | Description |
|---|---|---|
| host | string | The host of the redis server. |
| port | number | The port of the redis server. |
(redis).GetServerInfoAuth(host, port, password) ⇒ string
GetServerInfoAuth returns the server info for a redis server
Kind: inner method of redisReturns:
string - - The server info.Throws:
error- The error encountered during getting server info.
| Param | Type | Description |
|---|---|---|
| host | string | The host of the redis server. |
| port | number | The port of the redis server. |
| password | string | The password for the redis server. |
(redis).IsAuthenticated(host, port) ⇒ boolean
IsAuthenticated checks if the redis server requires authentication
Kind: inner method of redisReturns:
boolean - - The authentication status.Throws:
error- The error encountered during checking authentication.
| Param | Type | Description |
|---|---|---|
| host | string | The host of the redis server. |
| port | number | The port of the redis server. |
(redis).RunLuaScript(host, port, password, script)
RunLuaScript runs a lua script on the redis server Kind: inner method ofredisThrows:
error- The error encountered during running the lua script.
| Param | Type | Description |
|---|---|---|
| host | string | The host of the redis server. |
| port | number | The port of the redis server. |
| password | string | The password for the redis server. |
| script | string | The lua script to run. |