Implementing Garbage Collection in Cache Module Due to Lack of TimeToLive Retrieval
HI! I am thinking about garbage collection implementation for
Cache module. Currently there is no way to retrieve timeToLive property for each entry from publicly accessible interfaces: Cache and ConsumerCache. I couldn't figure out a better solution rather than just to store timeToLive property altogether with the entry value. Why there is no native garbage collection? Isn't it a big deal to store stale entries endlessly?