Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init is a function that initializes a new cache. It creates a new Redis client with the server address, password, and database number specified in the application's configuration. It then pings the Redis server to ensure the connection is successful. If the connection fails, it logs a fatal error. If the connection is successful, it returns a new cache with the Redis client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.