1

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"?

SomeWittyUsername
  • 18,025
  • 3
  • 42
  • 85
Jimilian
  • 3,859
  • 30
  • 33

1 Answers1

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