adapters

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	// Eval adds support for the redis EVAL command
	//
	// See https://redis.io/commands/eval
	Eval(ctx context.Context, script string, keys []string, args []interface{}) (output interface{}, err error)
}

Adapter provides a generic interface that's compatible with various Go redis libraries.

This package ships with native support for go-redis and redigo, see github.com/aidenwallis/go-ratelimiting/redis/adapters/go-redis and github.com/aidenwallis/redis/adapters/redigo.

Alternatively, if you ship your own Redis implementation, you can build your own wrapper compatible with this interface to consume this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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