redis

package
v3.2.7-fix-202407061801 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: MIT, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Warning - This is generated code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host string, port int, password string) (bool, error)

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

func GetServerInfo(host string, port int) (string, error)

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

func GetServerInfoAuth(host string, port int, password string) (string, error)

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

func IsAuthenticated(host string, port int) (bool, error)

IsAuthenticated checks if the redis server requires authentication @example ```javascript const redis = require('nuclei/redis'); const isAuthenticated = redis.IsAuthenticated('acme.com', 6379); ```

func RunLuaScript

func RunLuaScript(host string, port int, password string, script string) (interface{}, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL