redis

package
v0.0.1-0...-2d23240 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SESSION_TTL     time.Duration = 30 * time.Minute
	AUTH_TOKEN_TTL  time.Duration = 15 * time.Minute
	CACHE_TTL_SHORT time.Duration = 1 * time.Minute
	CACHE_TTL_LONG  time.Duration = 1 * time.Hour
)

Variables

This section is empty.

Functions

func GetClient

func GetClient() *redisClient

Types

type RedisClient

type RedisClient interface {
	Set(key string, value any, ttl time.Duration) error
	Get(key string) (string, error)
	Del(keys ...string) error
}

Jump to

Keyboard shortcuts

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