redis

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initer

func Initer() cache.Initer

Initer returns the cache.Initer for the Redis cache store.

Types

type Config

type Config struct {

	// Options is the settings to set up Redis client connection.
	Options *Options
	// KeyPrefix is the prefix to use for keys in Redis. Default is "cache:".
	KeyPrefix string
	// Encoder is the encoder to encode cache data. Default is a Gob encoder.
	Encoder cache.Encoder
	// Decoder is the decoder to decode cache data. Default is a Gob decoder.
	Decoder cache.Decoder
	// contains filtered or unexported fields
}

Config contains options for the Redis cache store.

type Options

type Options = redis.Options

Options keeps the settings to set up Redis client connection.

Jump to

Keyboard shortcuts

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