hash_remove_first
while ((block = (cached_block*)hash_remove_first(cache->hash,
while ((transaction = (cache_transaction*)hash_remove_first(
void *hash_remove_first(struct hash_table *table, uint32_t *_cookie);