redis

package
v0.0.0-...-13e599b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheService

type CacheService struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(addr string) *CacheService

func (*CacheService) Delete

func (c *CacheService) Delete(ctx context.Context, key string) error

func (*CacheService) Get

func (c *CacheService) Get(ctx context.Context, key string, val interface{}) error

func (*CacheService) Set

func (c *CacheService) Set(ctx context.Context, key string, val interface{}, ttl time.Duration) error

Jump to

Keyboard shortcuts

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