cache icon indicating copy to clipboard operation
cache copied to clipboard

A few cache algorithms

Results 2 cache issues
Sort by recently updated
recently updated
newest added

Hi trauzti, It seems your result of LIRS is not correct. If you just run the example given by the LIRS paper of Song Jiang, you will find your result...

Note that when your PUT is actually an overwrite, you shouldn't do eviction (if self.cn == self.c) or +1 (else). ```python def put(self, key, val=1): if key not in self.stored:...