redis

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 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 RedisStorage

type RedisStorage struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

func New

func New(host, password string, db int) (*RedisStorage, error)

New instances a new redis client

func (*RedisStorage) Delete

func (s *RedisStorage) Delete(m interfaces.Model) error

func (*RedisStorage) Get

func (s *RedisStorage) Get(m interfaces.Model, ID interface{}) error

func (*RedisStorage) GetTTL

func (s *RedisStorage) GetTTL() int

func (*RedisStorage) Purge

func (s *RedisStorage) Purge() error

func (*RedisStorage) Set

func (s *RedisStorage) Set(m interfaces.Model, ttl int) error

func (*RedisStorage) SetTTL

func (s *RedisStorage) SetTTL(ttl int) error

Jump to

Keyboard shortcuts

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