cache-manager icon indicating copy to clipboard operation
cache-manager copied to clipboard

Should the Cacheable's sync (CacheableSync) be disconnected when disconnecting a cacheable instance?

Open lyhongnhat opened this issue 1 year ago • 3 comments

I noticed that the Cacheable's disconnect method does not close or disconnect the messageProvider configured by the sync. Is there a way to make Cacheable also disconnect or close it when disconnecting, or do I need to handle that myself?

lyhongnhat avatar Nov 06 '25 07:11 lyhongnhat

@lyhongnhat - good catch and yes we should handle it there also. I will get a pull request going for this today

jaredwray avatar Nov 06 '25 20:11 jaredwray

https://github.com/jaredwray/cacheable/pull/1442

jaredwray avatar Nov 07 '25 18:11 jaredwray

this should be live in a couple weeks

jaredwray avatar Nov 07 '25 18:11 jaredwray