redis

package
v3.2.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT, Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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