redis

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisOptions

func NewRedisOptions(cfg gostor.Config) *redis.Options

Types

type Client

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

func NewClient

func NewClient(cfg gostor.Config) *Client

func (Client) GetInterface added in v0.2.1

func (client Client) GetInterface(key string, val interface{}) error

func (Client) GetOrEmptyString

func (client Client) GetOrEmptyString(key string) string

func (Client) GetString

func (client Client) GetString(key string) (string, error)

func (Client) SetInterface added in v0.2.1

func (client Client) SetInterface(key string, val interface{}) error

func (Client) SetString

func (client Client) SetString(key, val string) error

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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