redis

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 3 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 interface {
	HGetData(hash, field string) ([]byte, error)
	HSetData(hash, field string, data []byte, ttl ...int64) error
	GetData(key string) (data []byte, err error)
	SetData(key string, value []byte, ttl ...int64) (err error)
	Delete(key string) error
	HDelete(hash, field string) error
	Close() error
}

func New

func New(host string, port string, ttl uint64) Redis

Jump to

Keyboard shortcuts

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