Use the right lookup in dbcache.Cache.__contains__