Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RedisClient *redis.Client RedisOnce sync.Once )
Functions ¶
func CloseRedisClient ¶
func CloseRedisClient() error
CloseRedisClient gracefully closes the Redis connection
func GetPoolStats ¶
GetPoolStats returns current pool statistics
func GetRedisClient ¶
func WithTransaction ¶ added in v0.19.4
WithTransaction begins a database transaction, executes fn within it, and commits on success or rolls back on failure or panic.
Types ¶
Click to show internal directories.
Click to hide internal directories.