redis

package module
v0.0.0-...-72ecdfa 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

k6 extension for redis

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.

func (*Client) Flushall

func (c *Client) Flushall()

func (*Client) Get

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

Get returns the value for the given key.

func (*Client) Set

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

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

type ClusterClient

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

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) interface{}

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

Jump to

Keyboard shortcuts

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