Documentation ¶
Overview ¶
Package redis provides a Redis-based caching implementation for the application. It includes functionality to store and retrieve data in a Redis cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis represents a Redis cache client. It includes the Redis client and cache expiry time.
func New ¶
New initializes a new Redis cache client using the provided server configuration. It returns a Redis instance or an error if the connection to Redis fails.
Click to show internal directories.
Click to hide internal directories.