pub fn assert_invariants(cache: &Cache)Expand description
Assert that the cache invariants are met:
current_sizeis the number of recordsnext_expiryof each partition is the min of its expiry timesaccess_priorityhas all the partitions in the correct orderexpiry_priorityhas all the partitions in the correct order