item *item_touch(const char *key, size_t nkey, uint32_t exptime) { item *it; uint32_t hv; hv = hash(key, nkey, 0); item_lock(hv); it = do_item_touch(key, nkey, exptime, hv); item_unlock(hv); return it; }
base_item* LRU_list::item_touch(const char* key, size_t nkey, uint32_t exptime) { base_item *it; uint32_t hv; hv = HashTable::hash(key, nkey); hashtable.hash_lock(hv); it = do_item_touch(key, nkey, exptime, hv); hashtable.hash_unlock(hv); return it; }