Documentation
¶
Overview ¶
Package redis provides Redis connection management and operations utilities. It includes connection pooling, health checks, and helper functions for interacting with Redis databases in a safe and efficient manner.
Index ¶
Constants ¶
View Source
const RedisTTL = 300
RedisTTL defines the default time-to-live (TTL) for Redis cache entries in seconds.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConnection ¶
type RedisConnection struct {
Addr string
User string
Password string
DB int
Protocol int
Client *redis.Client
Connected bool
Logger log.Logger
}
RedisConnection is a hub which deal with redis connections. The type name intentionally matches the package name for clarity in external usage.
Click to show internal directories.
Click to hide internal directories.