redis

package
v0.0.0-...-a96ba29 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(conf config.RedisConfig) *Storage

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Delete

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

func (*Storage) Get

func (s *Storage) Get(key string) (string, error)

func (*Storage) GetBytes

func (s *Storage) GetBytes(key string) ([]byte, error)

func (*Storage) GetInt

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

func (*Storage) IncrBy

func (s *Storage) IncrBy(key string, val int64) error

func (*Storage) Reset

func (s *Storage) Reset() error

func (*Storage) Set

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

Jump to

Keyboard shortcuts

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