cache

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: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RedisModule for fx.
	// nolint:gochecknoglobals
	RedisModule = fx.Options(fx.Provide(redis.NewRing), fx.Provide(redis.NewOptions), fx.Provide(redis.NewCache))

	// RedisJaegerModule for fx.
	// nolint:gochecknoglobals
	RedisJaegerModule = fx.Provide(jaeger.NewTracer)

	// RedisDataDogModule for fx.
	// nolint:gochecknoglobals
	RedisDataDogModule = fx.Provide(datadog.NewTracer)

	// RistrettoModule for fx.
	// nolint:gochecknoglobals
	RistrettoModule = fx.Provide(ristretto.NewCache)

	// SnappyCompressorModule for fx.
	// nolint:gochecknoglobals
	SnappyCompressorModule = fx.Provide(compressor.NewSnappy)

	// ProtoMarshallerModule for fx.
	// nolint:gochecknoglobals
	ProtoMarshallerModule = fx.Provide(marshaller.NewProto)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Redis     redis.Config     `yaml:"redis"`
	Ristretto ristretto.Config `yaml:"ristretto"`
}

Config for cache.

Jump to

Keyboard shortcuts

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