【发布时间】:2015-01-08 19:02:59
【问题描述】:
当我像这样设置内存缓存实体的键时
syncCache.put(entityKey, entity);
在哪里
entityKey = entity.getKey();
entityKeyIdFromDataStore = entityKey.getId();
然后我检索存储在 memcache 中的实体并检索密钥 id
entity = (Entity) syncCache.get(entityKey);
entityKeyIdFromCache = entity.getKey().getId();
entityKeyIdFromDataStore 和 entityKeyIdFromCache 会一样吗?
【问题讨论】:
标签: java google-app-engine google-cloud-datastore