redis

package
v0.0.0-...-9ae6259 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateNew             string = "0"
	StateAlreadyExisting string = "1"
)

task states

View Source
const (
	CommandAll string = "all"
)

Task types

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis interface {
	Get(key string) (string, error)
	Del(key string) error
	Set(key string, value interface{}, expiration time.Duration) error
	Close() error
}

Redis deals with Redis data stuff

func New

func New(options *rs.Options) Redis

New creates an instance of Redis

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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