Example #1
0
 public LRUCache(int cacheSize, int historySize, int k)
 {
     cache            = new LRU_1(cacheSize);
     this.historySize = historySize;
     this.k           = k;
 }
Example #2
0
 public LRUCache(int cacheSize)
 {
     cache       = new LRU_1(cacheSize);
     historySize = cacheSize * 3;
     this.k      = 2;
 }