redis_store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

func New

func New(opt *redis.Options) *RedisStore

func (*RedisStore) ClearExpired

func (self *RedisStore) ClearExpired()

func (*RedisStore) Delete

func (self *RedisStore) Delete(key string)

func (*RedisStore) Exists

func (self *RedisStore) Exists(key string) bool

func (*RedisStore) Get

func (self *RedisStore) Get(key string) (map[string]interface{}, error)

func (*RedisStore) GetExpireTime

func (self *RedisStore) GetExpireTime(key string) time.Time

func (*RedisStore) Set

func (self *RedisStore) Set(key string, value map[string]interface{}, expiration time.Duration) error

func (*RedisStore) SetExpireTime

func (self *RedisStore) SetExpireTime(key string, duration time.Duration)

Jump to

Keyboard shortcuts

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