MCPcopy Create free account
hub / github.com/F-Stack/f-stack / LFUGetTimeInMinutes

Function LFUGetTimeInMinutes

app/redis-6.2.6/src/evict.c:282–284  ·  view source on GitHub ↗

Return the current time in minutes, just taking the least significant * 16 bits. The returned time is suitable to be stored as LDT (last decrement * time) for the LFU implementation. */

Source from the content-addressed store, hash-verified

280 * 16 bits. The returned time is suitable to be stored as LDT (last decrement
281 * time) for the LFU implementation. */
282unsigned long LFUGetTimeInMinutes(void) {
283 return (server.unixtime/60) & 65535;
284}
285
286/* Given an object last access time, compute the minimum number of minutes
287 * that elapsed since the last access. Handle overflow (ldt greater than

Callers 5

LFUTimeElapsedFunction · 0.85
createObjectFunction · 0.85
objectSetLRUOrLFUFunction · 0.85
updateLFUFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected