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