cache

package
v0.0.0-...-b6d7262 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 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 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 []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