redis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

Types

type Cache

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

func (*Cache) Delete

func (c *Cache) Delete(ctx context.Context, key string) error

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, key string) (string, bool, error)

func (*Cache) Set

func (c *Cache) Set(ctx context.Context, key, value string) error

type Config

type Config struct {
	TTL time.Duration `cfg:"ttl" json:"ttl"`
}

Jump to

Keyboard shortcuts

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