cache

package
v0.0.0-...-36f2d6d Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string) error

Delete removes a value from the cache by key

func Get

func Get(key string) (string, error)

Get retrieves a value from the cache by key

func GetClient

func GetClient() *redis.Client

GetClient returns the Redis client instance

func GetInt

func GetInt(key string) (int, error)

GetInt retrieves an integer value from the cache by key

func Set

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

Set stores a value in the cache with the given key and expiration time

func SetupCache

func SetupCache()

SetupCache initializes the connection to the Dragonfly cache server

Types

This section is empty.

Jump to

Keyboard shortcuts

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