fakeredis

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 5 Imported by: 0

README

shredis

Redis compatible API, but using local memory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRedis

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

func New

func New() *FakeRedis

func (*FakeRedis) Blpop

func (this *FakeRedis) Blpop(key string, timeout int) (string, error)

func (*FakeRedis) Brpop

func (this *FakeRedis) Brpop(key string, timeout int) (string, error)

func (*FakeRedis) Get

func (this *FakeRedis) Get(key string) (string, error)

func (*FakeRedis) Hexists

func (this *FakeRedis) Hexists(key string, field string) (bool, error)

func (*FakeRedis) Hget

func (this *FakeRedis) Hget(key string, field string) (string, error)

func (*FakeRedis) Hgetall

func (this *FakeRedis) Hgetall(key string) (map[string]string, error)

func (*FakeRedis) Hincrby

func (this *FakeRedis) Hincrby(key string, field string, amount int) (string, error)

func (*FakeRedis) Hset

func (this *FakeRedis) Hset(key string, field string, value string)

func (*FakeRedis) Lpop

func (this *FakeRedis) Lpop(key string) (string, error)

func (*FakeRedis) Lpush

func (this *FakeRedis) Lpush(key string, value string) error

func (*FakeRedis) Rpop

func (this *FakeRedis) Rpop(key string) (string, error)

func (*FakeRedis) Rpush

func (this *FakeRedis) Rpush(key string, value string) error

func (*FakeRedis) Set

func (this *FakeRedis) Set(key string, value string) error

Jump to

Keyboard shortcuts

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