summaryrefslogtreecommitdiff
path: root/plugins/redis/interface.go
blob: 189b00022fc32f34f17c4b752c305cde6446e886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package redis

import "github.com/go-redis/redis/v8"

// Redis in the redis KV plugin interface
type Redis interface {
	// RedisClient provides universal redis client
	RedisClient(key string) (redis.UniversalClient, error)

	// DefaultClient provide default redis client based on redis defaults
	DefaultClient() redis.UniversalClient
}