文件操作 - README
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/redis-tools/examples/lru/README
编辑文件内容
The test-lru.rb program can be used in order to check the behavior of the Redis approximated LRU algorithm against the theoretical output of true LRU algorithm. In order to use the program you need to recompile Redis setting the define REDIS_LRU_CLOCK_RESOLUTION to 1, by editing the file server.h. This allows to execute the program in a fast way since the 1 ms resolution is enough for all the objects to have a different enough time stamp during the test. The program is executed like this: ruby test-lru.rb /tmp/lru.html You can optionally specify a number of times to run, so that the program will output averages of different runs, by adding an additional argument. For instance in order to run the test 10 times use: ruby test-lru.rb /tmp/lru.html 10
修改文件时间
将文件时间修改为当前时间的前一年
删除文件