cache

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 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() *RedisCache

func (*RedisCache) Exist

func (c *RedisCache) Exist(key string) bool

func (*RedisCache) Get

func (c *RedisCache) Get(key string) (string, error)

func (*RedisCache) GetValueAndTTL

func (c *RedisCache) GetValueAndTTL(ctx context.Context, key string) (string, time.Duration, error)

func (*RedisCache) Set

func (c *RedisCache) Set(key string, value string, expire int64) error

func (*RedisCache) TTL

func (c *RedisCache) TTL(key string) (time.Duration, error)

Jump to

Keyboard shortcuts

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