Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheConnect ¶
func GetCacheConnect() redis.UniversalClient
GetCacheConnect get redis connection. Created by initializing configuration parameters.
To ensure high availability, data read and write have timeout limits.
Query errors may not necessarily be caused by the queries (e.g. no connections in the connection pool).
func InitRedisClient ¶
InitRedisClient initialize redis connection based on config.
Enabling cache should trigger an update to the Redis cache for each resource operation, updating the DB first and then Redis.
All Key of Redis have a default expiration time of 1 hour and are maintained and updated by goroutine.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.