cache

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(client redis.UniversalClient) cache.Cache

NewRedis 创建redis缓存

Types

type Redis

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

Redis redis缓存

func (*Redis) ClearAll

func (redis *Redis) ClearAll() error

func (*Redis) Delete

func (redis *Redis) Delete(key string) error

func (*Redis) Get

func (redis *Redis) Get(key string) (string, error)

func (*Redis) IsExist

func (redis *Redis) IsExist(key string) bool

func (*Redis) Put

func (redis *Redis) Put(key string, value string, expiration time.Duration) error

Jump to

Keyboard shortcuts

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