cache

package
v0.0.0-...-ec49581 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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 RedisCache

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

func NewRedisCache

func NewRedisCache(addr, password string) (*RedisCache, error)

func (*RedisCache) Delete

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

func (*RedisCache) Get

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

func (*RedisCache) Set

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

Jump to

Keyboard shortcuts

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