In the learning material, under the heading Advanced Cache Concepts, it is mentioned that we can use RLock inside Get call. But this is not the case for all the eviction policy. This works incase of FIFO since there are no modifcations happening. But incase of LRU, LFU etc, we can not use RLock since we are modifying the internal structures of cache implementation(the doubly linked list).
In the learning material, under the heading Advanced Cache Concepts, it is mentioned that we can use RLock inside Get call. But this is not the case for all the eviction policy. This works incase of FIFO since there are no modifcations happening. But incase of LRU, LFU etc, we can not use RLock since we are modifying the internal structures of cache implementation(the doubly linked list).