I was trying to find any information about cache algorithm that are used in ccache
, but didn't find anything. So, does anyone know how ccache
evict elements when max_size is reached? LRU? MRU? "Ring buffer"?
Asked
Active
Viewed 207 times
1 Answers
2
Now I found in source code that ccache are using LRU: https://github.com/ccache/ccache/blob/c33cd219f85449078034ff75b54fd499549cf4e4/cleanup.c#L22

Jimilian
- 3,859
- 30
- 33