cache

package
v0.0.0-...-847e23e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NotEnabled = notEnabled("cache_not_enabled")

Variables

View Source
var Client *redisCache

Functions

func Get

func Get(key string, value interface{}) error

func Set

func Set(key string, value interface{}, duration time.Duration) error

Types

type Settings

type Settings struct {
	Enabled                    bool
	Host                       string
	Port                       string
	Password                   string
	PasswordFile               string
	EncryptionKey              string
	UserCacheExpiration        time.Duration
	UserProfileCacheExpiration time.Duration
	UserCachePrefix            string
	UserProfileCachePrefix     string
}

func (*Settings) SetupCache

func (s *Settings) SetupCache() error

Jump to

Keyboard shortcuts

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