hi new follower here, thanks for the awesome content.
@mohamedasraf417510 ай бұрын
Good explain, Thankyou
@vengateshm212210 ай бұрын
Can we use hashmap instead LruCache as it is also key value pair data structure?
@Landofcoding10 ай бұрын
And how are going to set the size of that? or how are going to manage the data in the memory using a map? The idea of LruCahce is that it does these things for you using LRU algorithm.
@vengateshm212210 ай бұрын
@Landofcoding Understood. Map does not have functionality to eliminate stale data which holds unnecessary memory.