redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisValidationClient

func NewRedisValidationClient(
	address string) (datastore.ValidationDataStoreOperations, error)

func SetRedisClient

func SetRedisClient(client *goredis.Client, redisClient *RedisClient) error

Types

type RedisClient

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

func (*RedisClient) AddDataLifetime

func (rc *RedisClient) AddDataLifetime(
	key string, endTime string) (*datastore.LifetimeCache, error)

func (*RedisClient) AddSuccessorDataLifetimeCustomResource

func (rc *RedisClient) AddSuccessorDataLifetimeCustomResource(
	key string, successor string) error

func (*RedisClient) Close

func (rc *RedisClient) Close() error

func (*RedisClient) DeleteDataLifetime

func (rc *RedisClient) DeleteDataLifetime(key string) error

func (*RedisClient) DeleteSuccessorDataLifetimeCustomResource

func (rc *RedisClient) DeleteSuccessorDataLifetimeCustomResource(
	key string, successor string) error

func (*RedisClient) GetDataLifetime

func (rc *RedisClient) GetDataLifetime(
	key string) (*datastore.LifetimeCache, error)

func (*RedisClient) GetDataLifetimeKeys

func (rc *RedisClient) GetDataLifetimeKeys() ([]string, error)

Jump to

Keyboard shortcuts

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