Help us shape the future of Go! Take the 2026 Go Developer Survey

redis

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(addr string) (repository.Repository, error)

Types

type RedisStorage

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

func (*RedisStorage) Exists

func (rs *RedisStorage) Exists(key string) (bool, error)

func (*RedisStorage) Get

func (rs *RedisStorage) Get(key string) (string, error)

func (*RedisStorage) HExists

func (rs *RedisStorage) HExists(key, field string) (bool, error)

func (*RedisStorage) HGet

func (rs *RedisStorage) HGet(hash, key string) (string, error)

func (*RedisStorage) HSet

func (rs *RedisStorage) HSet(hash, key, value string) error

func (*RedisStorage) Set

func (rs *RedisStorage) Set(key string, value string) error

func (*RedisStorage) SetWithTTL

func (rs *RedisStorage) SetWithTTL(
	key, value string,
	expiration time.Duration,
) error

Jump to

Keyboard shortcuts

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