Closed vegetableysm closed 4 months ago
The recycle process cannot be placed in the cache manager destructor. Because the client stored in cache manager is provided by the user. We cannot assume the order of destruction of cache manager and client. Additionally, if the client calls disconnect function before the manager destroys, the recycle process will also fail. So I add a Close function to recycle memory. Even if user forgets to call the Close function, it will not affect the subsequent use of the cache, only cause a memory leak.
What do these changes do?
Related issue number
Fixes #1813 Fixes #1814