redis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(redisOptions ...RedisOptionsSetter) oauth2.TokenStore

func NewWithClient

func NewWithClient(client *redis.Client, keyNamespaces ...string) oauth2.TokenStore

Types

type Options

type Options struct {
	*redis.Options
	KeyNamespace string
}

type RedisOptionsSetter

type RedisOptionsSetter func(*Options)

func RedisAddr

func RedisAddr(addr string) RedisOptionsSetter

func RedisDB

func RedisDB(db int) RedisOptionsSetter

func RedisDialTimeout

func RedisDialTimeout(duration time.Duration) RedisOptionsSetter

func RedisIdleCheckFrequency

func RedisIdleCheckFrequency(duration time.Duration) RedisOptionsSetter

func RedisIdleTimeout

func RedisIdleTimeout(duration time.Duration) RedisOptionsSetter

func RedisKeyNamespace

func RedisKeyNamespace(keyNamespace string) RedisOptionsSetter

func RedisLimiter

func RedisLimiter(limiter redis.Limiter) RedisOptionsSetter

func RedisMaxConnAge

func RedisMaxConnAge(duration time.Duration) RedisOptionsSetter

func RedisMaxRetries

func RedisMaxRetries(maxRetries int) RedisOptionsSetter

func RedisMaxRetryBackoff

func RedisMaxRetryBackoff(duration time.Duration) RedisOptionsSetter

func RedisMinIdleConns

func RedisMinIdleConns(minIdleConns int) RedisOptionsSetter

func RedisMinRetryBackoff

func RedisMinRetryBackoff(duration time.Duration) RedisOptionsSetter

func RedisNetwork

func RedisNetwork(network string) RedisOptionsSetter

func RedisPassword

func RedisPassword(password string) RedisOptionsSetter

func RedisPoolSize

func RedisPoolSize(poolSize int) RedisOptionsSetter

func RedisPoolTimeout

func RedisPoolTimeout(duration time.Duration) RedisOptionsSetter

func RedisReadTimeout

func RedisReadTimeout(duration time.Duration) RedisOptionsSetter

func RedisTLSConfig

func RedisTLSConfig(config *tls.Config) RedisOptionsSetter

func RedisUsername

func RedisUsername(user string) RedisOptionsSetter

func RedisWriteTimeout

func RedisWriteTimeout(duration time.Duration) RedisOptionsSetter

Jump to

Keyboard shortcuts

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