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