rcache

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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