redis

package module
v0.0.0-...-a0ca213 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

xk6-redis-poc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportError

func ReportError(err error, msg string)

ReportError is a handy function to show errors

Types

type REDIS

type REDIS struct{}

REDIS is the k6 Redis extension.

func (*REDIS) Del

func (*REDIS) Del(client *redis.Client, key string)

Del removes a key/value

func (*REDIS) Do

func (*REDIS) Do(client *redis.Client, cmd string, key string) string

Do runs arbitrary/custom commands

func (*REDIS) Get

func (*REDIS) Get(client *redis.Client, key string) string

Get gets a key/value

func (*REDIS) NewClient

func (*REDIS) NewClient(addr string, password string, bd int) *redis.Client

NewClient creates a new Redis client

func (*REDIS) Set

func (*REDIS) Set(client *redis.Client, key string, value interface{}, expiration time.Duration)

Set adds a key/value

Jump to

Keyboard shortcuts

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