redis

package
v0.0.0-...-578000c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 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