redis

package
v0.0.0-...-9be3a58 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisStore

func NewRedisStore(c store.Config) (store.Store, error)

NewRedisCache create new redis cache with default collection name.

Types

type Redis

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

Store is Redis store adapter.

func (*Redis) Delete

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

Delete deletes key in redis.

func (*Redis) Get

func (rc *Redis) Get(key string) (r store.GetResult)

Get gets a value from redis with the giving key

func (*Redis) MultiGet

func (rc *Redis) MultiGet(keys []string) map[string]store.GetResult

MultiGet gets values from redis with the giving keys

func (*Redis) Set

func (rc *Redis) Set(key string, val string) error

Set sets a value with the key into redis.

Jump to

Keyboard shortcuts

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