redis

package
v0.0.0-...-69154b6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 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 struct {
	Address  string
	Password string
	DB       int
	// contains filtered or unexported fields
}

func (*Redis) Delete

func (s *Redis) Delete(key string) error

func (*Redis) Get

func (s *Redis) Get(key string, i interface{}) error

func (*Redis) GetInt

func (s *Redis) GetInt(key string) (int, error)

func (*Redis) GetStr

func (s *Redis) GetStr(key string) (string, error)

func (*Redis) Inc

func (s *Redis) Inc(key string, val int) error

func (*Redis) Initial

func (s *Redis) Initial()

func (*Redis) Set

func (s *Redis) Set(key string, val interface{}, exp time.Duration) error

func (*Redis) SetExp

func (s *Redis) SetExp(key string, exp time.Duration) error

Jump to

Keyboard shortcuts

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