package
Version:
v0.0.0-...-040f366
Opens a new window with list of versions in this module.
Published: May 14, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Get retrieves a string value by key.
Returns redis.Nil error if key does not exist.
func GetClient() *redis.Client
GetClient returns the global Redis client.
func InitRedis(addr, password string, db int)
InitRedis initializes the global Redis client.
Call this once (e.g. in cmd/feedjson/main.go) before using Get/Set or RDB.
RDB returns the underlying Redis client for direct use
(e.g. in auth/store.go or advanced operations).
Set stores a string value with the given TTL.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.