Documentation
¶
Overview ¶
Package redis provides a Redis client wrapper for the scheduler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the go-redis client with additional functionality.
func (*Client) GetRedisAddr ¶
GetRedisAddr returns the Redis address for Asynq client configuration.
func (*Client) GetRedisDB ¶
GetRedisDB returns the Redis database number for Asynq client configuration.
func (*Client) GetRedisPassword ¶
GetRedisPassword returns the Redis password for Asynq client configuration.
func (*Client) RedisClient ¶
RedisClient returns the underlying go-redis client for direct access.
type Config ¶
type Config struct {
Addr string
Password string
DB int
PoolSize int
MinIdleConns int
MaxRetries int
DialTimeout time.Duration
ReadTimeout time.Duration
WriteTimeout time.Duration
}
Config holds Redis connection configuration.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with sensible defaults.
Click to show internal directories.
Click to hide internal directories.