Open kingsley8524267 opened 1 month ago
Set the cache configuration in redis to NonBlock = false, and a redis ping check will be performed when creating the cache.
It working! But how to close the cache connection or go-zero will automatically close the cache connection while context done?
I have checked the related cache issues and documents here, but I have not found how to verify the connection of the cache connection during NewServiceContext to ensure that the configuration connection is correct, and how to close the cache conn?