rediscluster

package module
v0.0.0-...-357abe7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

xk6_redis_ClusterClient

Redis extenuation with ClusterClient

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the Redis client wrapper.

type Clusterclient

type Clusterclient struct {
	// contains filtered or unexported fields
}

func (*Clusterclient) Clientinfo

func (c *Clusterclient) Clientinfo() (string, error)

Clientinfo returns the Client info.

func (*Clusterclient) Close

func (c *Clusterclient) Close()

Close returns the value for the given key.

func (*Clusterclient) Flushall

func (c *Clusterclient) Flushall()

func (*Clusterclient) Get

func (c *Clusterclient) Get(key string) (string, error)

Get returns the value for the given key.

func (*Clusterclient) Getdo

func (c *Clusterclient) Getdo(key string) (string, error)

Getdo returns the value for the given key.

func (*Clusterclient) Set

func (c *Clusterclient) Set(key, value string, exp int)

Set the given key with the given value and expiration time.

func (*Clusterclient) Setdo

func (c *Clusterclient) Setdo(key, value string, exp time.Duration)

Setdo the given key with the given value and expiration time.

func (*Clusterclient) Setnx

func (c *Clusterclient) Setnx(key, value string, exp time.Duration)

Setnx the given key with the given value and expiration time.

type Redis

type Redis struct{}

Redis is the k6 extension for a Redis client.

func (*Redis) XClient

func (r *Redis) XClient(ctxPtr *context.Context, server string, max int, timeout int, maxRetries int) interface{}

XClient represents the Cluster client constructor (i.e. `new redis.ClusterClient()`) and returns a new Redis Cluster client object.

Jump to

Keyboard shortcuts

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