redisStore

package
v0.0.0-...-27c9e6d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 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 interface {
	// GetRedisPairValue checks that a value exist for key and if exist returnes value of it
	GetRedisPairValue(key string) (exist bool, value string, err error)
	// SetRedisPair sets a key-value pair with time-to-live in redis (zero ttl means the key has no expiration time)
	SetRedisPair(key, value string, ttl time.Duration) (err error)

	AddToRedisSortedSet(key string, value []interface{}) (err error)
	GetRedisSortedSet(key string) (exist bool, value []string, err error)
	RemoveFromRedisSortedSet(key string, value []interface{}) (err error)
}

func New

func New(redisClient *redis.Client) RedisStore

Jump to

Keyboard shortcuts

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