Cache ttl is stable

The LRU class is almost done but it is very stable. The main function missing is to lock each file.