cache

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 7 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 GetRedisCache

func GetRedisCache() *RedisCache

func NewRedisCache

func NewRedisCache(host, port, password string, db int) (*RedisCache, error)

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) (string, error)

func (*RedisCache) Set

func (c *RedisCache) Set(key string, value string, expSecond int32) error

Jump to

Keyboard shortcuts

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