redisstore

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore added in v1.2.0

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

RedisStore struct to hold redis client and ttl.

func NewRedisStore added in v1.2.0

func NewRedisStore(options *redis.Options, ttl time.Duration) *RedisStore

NewRedisStore returns a new RedisStore with redis client using https://gopkg.in/redis.v5.

func (*RedisStore) AddKey added in v1.2.0

func (rds *RedisStore) AddKey(key string) (bool, error)

AddKey adds key to redis if one does not exist otherwise returns error.

Jump to

Keyboard shortcuts

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