You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
392 B

#include <string>
#include <iostream>
#include "LRUCache.h"
using namespace std;
int main(int argc, char **argv) {
LRUCache<string, int> lru(4);
lru.insert("hello", new int(1));
lru.insert("hi", 2);
lru.insert("where", 3);
lru.insert("are", 4);
lru.insert("you", 5);
lru.debug_cache();
lru.find("where");
std::cout << "------------" << std::endl;
lru.debug_cache();
return 0;
}