Name Date Size #Lines LOC

..27-Nov-2024-

READMEH A D27-Nov-2024524 1410

test-lru.rbH A D27-Nov-20241.8 KiB11383

README

1The test-lru.rb program can be used in order to check the behavior of the
2Redis approximated LRU algorithm against the theoretical output of true
3LRU algorithm.
4
5In order to use the program you need to recompile Redis setting the define
6REDIS_LRU_CLOCK_RESOLUTION to 1, by editing redis.h.
7This allows to execute the program in a fast way since the 1 ms resolution
8is enough for all the objects to have a different enough time stamp during
9the test.
10
11The program is executed like this:
12
13    ruby test-lru.rb > /tmp/lru.html
14