redisPackage

package
v0.0.0-...-7a2e46d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisInterface

type RedisInterface struct {
	Client *redis.Client
}

func NewRedisInterface

func NewRedisInterface(redisURI string) (*RedisInterface, error)

func (*RedisInterface) GetObj

func (r *RedisInterface) GetObj(key string, obj any) (err error)

func (*RedisInterface) HSetObj

func (r *RedisInterface) HSetObj(key, field string, value any, expiration time.Duration) (err error)

Jump to

Keyboard shortcuts

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