rcache

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rcache

type Rcache struct {
	*redis.Client
	*redsync.Redsync
}

func NewRcache

func NewRcache(rdb *redis.Client) *Rcache

func NewRcacheWithRsync

func NewRcacheWithRsync(rdb *redis.Client, rsync *redsync.Redsync) *Rcache

func (*Rcache) RandExpireDuration

func (rc *Rcache) RandExpireDuration(t time.Duration, maxRand time.Duration) time.Duration

Jump to

Keyboard shortcuts

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