redis

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOperationTimeout = 10 * time.Second

Functions

This section is empty.

Types

type Cache

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

func New added in v0.4.0

func New(client redis.UniversalClient) *Cache

func (*Cache) Get

func (c *Cache) Get(key string) (any, error)

func (*Cache) Keys

func (c *Cache) Keys(prefix string) []string

func (*Cache) Pop

func (c *Cache) Pop(key string) (any, error)

func (*Cache) Remove

func (c *Cache) Remove(keys ...string) error

func (*Cache) Set

func (c *Cache) Set(key string, value any, duration time.Duration) error

Jump to

Keyboard shortcuts

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