cache

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKeyFromCache

func DeleteKeyFromCache(key string) error

Remove a key from db

func GetKeysByPatternFromCache

func GetKeysByPatternFromCache(pattern string) ([]string, error)

Retrieve keys matching pattern from redis cache

func GetRedisCachePool

func GetRedisCachePool() *redis.Pool

Singleton function to get the redis pool for caching

func SetKeyToCache

func SetKeyToCache(key string, value []byte, ttlSeconds int) error

Set a key in cache, if expiration is set to a value that is equal or less than zero the key won't expire

Types

This section is empty.

Jump to

Keyboard shortcuts

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