redis

package
v0.0.0-...-33bd477 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *redis.Client

Functions

This section is empty.

Types

type Redis

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

Redis represents of RedisDb Client

func New

func New(projectName constants.Project) *Redis

func (Redis) Get

func (r Redis) Get(dbName constants.DbName, key string, params *[]string) (interface{}, error)

Get returns an array according to given parameters In redis this method returns []interface{}

func (Redis) GetAll

func (r Redis) GetAll() interface{}

func (Redis) Set

func (r Redis) Set(dbName constants.DbName, key string, value interface{}, params *[]string) error

Set sets data to redis with prefix for record : record, scraping results : recordmetadata

Jump to

Keyboard shortcuts

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