redis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisCache

func NewRedisCache() cache.Cache

Types

type Cache

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

func (*Cache) Delete

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

func (*Cache) Get

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

func (*Cache) GetClient

func (c *Cache) GetClient() interface{}

func (*Cache) GetMulti

func (c *Cache) GetMulti(ctx context.Context, keys []string) ([]interface{}, error)

func (*Cache) Put

func (c *Cache) Put(ctx context.Context, key string, val interface{}, timeout time.Duration) error

func (*Cache) Start

func (c *Cache) Start(config string) error

Jump to

Keyboard shortcuts

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