database

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNil = errors.New("no matching record found in redis database")
	Ctx    = context.Background()
	Rdb    *redis.Client
)

Functions

func ConnectDatabase

func ConnectDatabase() error

func Del

func Del(key string) error

func FindEntity

func FindEntity(id string, prefix string, entity interface{}) error

Function for finding an entity from database

func Get

func Get(key string) (string, error)

func Set

func Set(key string, val interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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