redis

package
v1.74.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Unlicense Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(params CacheParams) *cache.Cache

NewCache from config. The cache is based on https://github.com/go-redis/cache

func NewClient added in v1.66.0

func NewClient(params ClientParams) client.Client

NewClient for redis.

func NewOptions

func NewOptions(params OptionsParams) *cache.Options

NewOptions for redis.

func NewRingOptions added in v1.66.0

func NewRingOptions(cfg *Config) *redis.RingOptions

NewRingOptions for redis.

Types

type CacheParams added in v1.65.0

type CacheParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *Config
	Options   *cache.Options
	Version   version.Version
}

CacheParams for redis.

type ClientParams added in v1.66.0

type ClientParams struct {
	fx.In

	Lifecycle   fx.Lifecycle
	RingOptions *redis.RingOptions
	Tracer      opentracing.Tracer
	Logger      *zap.Logger
}

ClientParams for redis.

type Config

type Config struct {
	Host string `yaml:"host"`
}

Config for redis.

type OptionsParams added in v1.54.0

type OptionsParams struct {
	fx.In

	Client     client.Client
	Marshaller marshaller.Marshaller
	Compressor compressor.Compressor
}

OptionsParams for redis.

Directories

Path Synopsis
zap
metrics
trace

Jump to

Keyboard shortcuts

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