rcredis

package
v0.0.0-...-ff0926f Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacher

func NewCacher(client *redis.Client, config CacherConfig, opts ...rescacher.CacherOption) (*rescacher.TurnCacher, error)

Types

type CacherConfig

type CacherConfig struct {
	Name          string
	Gennerator    rescacher.IGen
	CacherExpired time.Duration
	TurnExpired   time.Duration
}

func (CacherConfig) Validate

func (c CacherConfig) Validate() error

Jump to

Keyboard shortcuts

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