Cached Data Store(缓存数据存储)
XPO provides functionality for a cache at the data store level. The cache stores queries and their results as they are being executed on a data store. Whenever a query, which has been executed before, passes the cache, the result from that query is returned back immediately without a roundtrip to a data store. This significantly improves performance in general and ensures that as little data as possible is transferred over the wire in distributed applications.
XPO为数据存储级别的缓存提供功能。缓存存储在数据存储上执行的查询及其结果。每当之前执行过的查询通过缓存时,该查询的结果将立即返回,而无需往返数据存储。这总体上显着提高了性能,并确保在分布式应用程序中通过网络传输的数据尽可能少。
To enable data store caching, four classes specifying the Root and its Nodes - DataCacheRoot, MSSql2005SqlDependencyCacheRoot, DataCacheNode and DataCacheNodeLocal - must be combined. The minimum setup of the cache requires one Root (DataCacheRoot or MSSql2005SqlDependencyCache