utils

package
v0.0.0-...-7286f95 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

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

func NewRedis

func NewRedis(cfg *config.Config) Redis

NewRedis creates a new redis client instance

func (Redis) Check

func (a Redis) Check(keys ...string) (bool, error)

func (Redis) Close

func (a Redis) Close() error

func (Redis) Delete

func (a Redis) Delete(keys ...string) (bool, error)

func (Redis) Get

func (a Redis) Get(key string, value interface{}) error

func (Redis) GetClient

func (a Redis) GetClient() *redis.Client

func (Redis) Set

func (a Redis) Set(key string, value interface{}, expiration time.Duration) error

Jump to

Keyboard shortcuts

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