Cache displacement of key-value pairs is necssary in two distinct cases:
If a GET-request by a client causes a cache miss, the repective key-value pair is looked-up on disk and transfered to the cache. If the cache is already full, one particular tuple is displaced to disk (and potentially updated there) according to the currently selected strategy.
If a PUT-request by a client is received by the server and the cash is already full, then again one partcular tuple is displaced according to the currently selected strategy.
Cache displacement of key-value pairs is necssary in two distinct cases:
Strategies: FIFO (db09692), LFU (db09692), LRU (db09692).