cache

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewRedisClient

func NewRedisClient(cfg *RedisConfig, logger util.Logger) *Cache

func (*Cache) Get

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

func (*Cache) Set

func (r *Cache) Set(ctx context.Context, key string, value interface{}) error

type NotInRedisCacheError

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

func (*NotInRedisCacheError) Error

func (e *NotInRedisCacheError) Error() string

type RedisConfig

type RedisConfig struct {
	Host     string
	Username string
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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