Client side caching eviction policy #455
              
                
                  
                  
                    Answered
                  
                  by
                    rueian
                  
              
          
                  
                    
                      arindamnayak
                    
                  
                
                  asked this question in
                Q&A
              
            -
| I am looking forward to use this library in one of the product. This library provides server assisted client side caching which means it can cache the look up in local memory. I am more interested how the cache eviction happens at local memory. I know there is a setting to control the local cache size ( default value is 128 MB). So when the memory limit is reached, how the data is removed from the local cache? Is there any policy can be set like LRU or LFU? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            rueian
          
      
      
        Jan 22, 2024 
      
    
    Replies: 1 comment 31 replies
-
| Hi @arindamnayak, It is LRU. | 
Beta Was this translation helpful? Give feedback.
                  
                    31 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Sure!
rueidis/lru.go
Lines 242 to 253 in 625e68a