cache

package
v0.0.0-...-5bb0c7b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Delete(key string) error
	Get(key string, obj interface{}) error
	Set(key string, obj interface{}, timeout time.Duration) error
	Close() error
}

func NewRedisCache

func NewRedisCache(addrs map[string]string, pwd string) Cache

type RedisCache

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

func (*RedisCache) Close

func (c *RedisCache) Close() error

func (*RedisCache) Delete

func (c *RedisCache) Delete(key string) error

func (*RedisCache) Get

func (c *RedisCache) Get(key string, obj interface{}) error

func (*RedisCache) Set

func (c *RedisCache) Set(key string, obj interface{}, timeout time.Duration) error

Jump to

Keyboard shortcuts

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