Return the LRU clock, based on the clock resolution. This is a time * in a reduced-bits format that can be used to set and check the * object->lru field of redisObject structures. */
| 71 | * in a reduced-bits format that can be used to set and check the |
| 72 | * object->lru field of redisObject structures. */ |
| 73 | unsigned int getLRUClock(void) { |
| 74 | return (mstime()/LRU_CLOCK_RESOLUTION) & LRU_CLOCK_MAX; |
| 75 | } |
| 76 | |
| 77 | /* This function is used to obtain the current LRU clock. |
| 78 | * If the current resolution is lower than the frequency we refresh the |
no test coverage detected