Documentation ¶
Overview ¶
Warning - This is generated code
Index ¶
- func Connect(host string, port int, password string) (bool, error)
- func GetServerInfo(host string, port int) (string, error)
- func GetServerInfoAuth(host string, port int, password string) (string, error)
- func IsAuthenticated(host string, port int) (bool, error)
- func RunLuaScript(host string, port int, password string, script string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect tries to connect redis server with password @example ```javascript const redis = require('nuclei/redis'); const connected = redis.Connect('acme.com', 6379, 'password'); ```
func GetServerInfo ¶
GetServerInfo returns the server info for a redis server @example ```javascript const redis = require('nuclei/redis'); const info = redis.GetServerInfo('acme.com', 6379); ```
func GetServerInfoAuth ¶
GetServerInfoAuth returns the server info for a redis server @example ```javascript const redis = require('nuclei/redis'); const info = redis.GetServerInfoAuth('acme.com', 6379, 'password'); ```
func IsAuthenticated ¶
IsAuthenticated checks if the redis server requires authentication @example ```javascript const redis = require('nuclei/redis'); const isAuthenticated = redis.IsAuthenticated('acme.com', 6379); ```
func RunLuaScript ¶
RunLuaScript runs a lua script on the redis server @example ```javascript const redis = require('nuclei/redis'); const result = redis.RunLuaScript('acme.com', 6379, 'password', 'return redis.call("get", KEYS[1])'); ```
Types ¶
This section is empty.