Null pointer exception in LruCache on iOS
DJ-LEE11 opened this issue · comments
Yeah, that's definitely an issue with the LRU Cache. How often does it happen? Do you have a way to reproduce it regularly?
It's not thread safe:
see:
apollographql/apollo-kotlin#2878
apollographql/apollo-kotlin#2844
looks like using https://github.com/ReactiveCircus/cache4k could be a solution?
but then again I don't think using a suspend there would be ideal 🤔
https://github.com/touchlab/Stately is another option
try 0.9.0
lmk if you have any problems. I switch it to being backed by stately's ConcurrentMutableMap