redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(ctx context.Context, c *redis.Client, exptime time.Duration) cache.ICacheInteractor

NewCache will return the redis cache handler

Types

type CacheOptions

type CacheOptions struct {
	Addr     string
	Password string
	DB       int // 0 for default DB
}

CacheOptions for storing data for Redis connections

Jump to

Keyboard shortcuts

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