redis

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

func NewRedisBackend

func NewRedisBackend(addr string) (*Redis, error)

func (*Redis) CacheGet

func (r *Redis) CacheGet(key string) (string, error)

Cache operations

func (*Redis) CacheSet

func (r *Redis) CacheSet(key, value string, ttl int32) error

func (*Redis) Close

func (r *Redis) Close() error

Service methods

func (*Redis) CounterGet

func (r *Redis) CounterGet(key string) (int64, error)

Counter operations

func (*Redis) CounterIncrement

func (r *Redis) CounterIncrement(key string, increment int64) (int64, error)

func (*Redis) FlagGet

func (r *Redis) FlagGet(key string) (bool, error)

Flag operations

func (*Redis) FlagSet

func (r *Redis) FlagSet(key string, value bool) error

func (*Redis) Flush

func (r *Redis) Flush() error

func (*Redis) KVDelete

func (r *Redis) KVDelete(key string) error

func (*Redis) KVGet

func (r *Redis) KVGet(key string) (*kv.Value, error)

KV operations

func (*Redis) KVPut

func (r *Redis) KVPut(key string, value *kv.Value) error

func (*Redis) Name

func (r *Redis) Name() string

func (*Redis) SetAdd

func (r *Redis) SetAdd(set, item string) ([]string, error)

func (*Redis) SetGet

func (r *Redis) SetGet(set string) ([]string, error)

Set operations

func (*Redis) SetRemove

func (r *Redis) SetRemove(set, item string) ([]string, error)

Jump to

Keyboard shortcuts

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