cache

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	*redis.Client
}

func NewRedisClient

func NewRedisClient(url string) *RedisClient

func (*RedisClient) CacheData

func (client *RedisClient) CacheData(key string, value interface{}, ttl time.Duration) error

func (*RedisClient) ComputeCacheKey

func (client *RedisClient) ComputeCacheKey(context, id, object string) string

func (*RedisClient) GetCachedData

func (client *RedisClient) GetCachedData(key string) (string, error)

func (*RedisClient) PublishMessageToRedisChannel

func (client *RedisClient) PublishMessageToRedisChannel(channel, message string) error

Jump to

Keyboard shortcuts

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