redis7

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PingAttemptBackoff = 2 * time.Second

PingAttemptBackoff specifies how long the client should wait after a failed ping attempt.

Functions

func CreateRedisStore

func CreateRedisStore(prefix string, clientOpts *redis.Options, opts ...stoabs.Option) (stoabs.KVStore, error)

CreateRedisStore connects to a Redis database server using the given options. The given prefix is added to each key, separated with a semicolon (:). When prefix is an empty string, it is ignored.

func Wrap

func Wrap(prefix string, client *redis.Client, opts ...stoabs.Option) (stoabs.KVStore, error)

Wrap can be used to use an already created Redis client as KVStore. This allows the application to use features supported by the Redis client library, but not by go-stoabs (e.g. Sentinel).

Types

This section is empty.

Jump to

Keyboard shortcuts

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