redis

package
v1.62.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Unlicense Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(lc fx.Lifecycle, cfg *Config, opts *cache.Options) *cache.Cache

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

func NewOptions

func NewOptions(params OptionsParams) *cache.Options

NewOptions for redis.

func NewRing

func NewRing(lc fx.Lifecycle, cfg *Config) *redis.Ring

NewRing for redis.

Types

type Config

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

Config for redis.

type OptionsParams added in v1.54.0

type OptionsParams struct {
	fx.In

	Ring       *redis.Ring
	Marshaller marshaller.Marshaller
	Compressor compressor.Compressor
}

OptionsParams for redis.

Directories

Path Synopsis
metrics
trace

Jump to

Keyboard shortcuts

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