当GetItem结果为空时,Dynamodb的AWS DAX会缓存空结果吗?
Will AWS DAX of Dynamodb cache null result when GetItem result is null?
我对 Amazon DAX 的空结果缓存行为有疑问。如果我尝试使用 Dynamodb 从 DAX GetItem
,并且项目结果为空。 DAX会缓存null结果来加速get null item吗?
是的。如果在 DynamoDB 中找不到项目,DAX 会缓存空标记。
是的,DAX 将缓存否定结果:
DAX supports negative cache entries, in both the item cache and the
query cache. A negative cache entry occurs when DAX cannot find
requested items in an underlying DynamoDB table. Instead of generating
an error, DAX caches an empty result and returns that result to the
user.
A negative cache entry will remain in the DAX item cache until its
item TTL has expired, LRU is invoked, or until the item is modified
using PutItem, UpdateItem or DeleteItem.
我对 Amazon DAX 的空结果缓存行为有疑问。如果我尝试使用 Dynamodb 从 DAX GetItem
,并且项目结果为空。 DAX会缓存null结果来加速get null item吗?
是的。如果在 DynamoDB 中找不到项目,DAX 会缓存空标记。
是的,DAX 将缓存否定结果:
DAX supports negative cache entries, in both the item cache and the query cache. A negative cache entry occurs when DAX cannot find requested items in an underlying DynamoDB table. Instead of generating an error, DAX caches an empty result and returns that result to the user.
A negative cache entry will remain in the DAX item cache until its item TTL has expired, LRU is invoked, or until the item is modified using PutItem, UpdateItem or DeleteItem.