redisstore

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

type RedisStore struct {
	Client *redis.Client
}

RedisStore uses Redis

func NewRedisStore

func NewRedisStore(addr string) RedisStore

NewRedisStore creates a new RedisStore

func (RedisStore) Get

func (r RedisStore) Get(key string) (interface{}, error)

Get value from Redis.

func (RedisStore) Has

func (r RedisStore) Has(key string) bool

Has checks if the key exists.

func (RedisStore) Put

func (r RedisStore) Put(key string, value interface{}, expiration time.Duration)

Put the value in Redis.

Jump to

Keyboard shortcuts

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