基本缓存方法(Windows Server AppFabric 缓存)
Windows Server AppFabric 为您在应用程序代码中使用缓存提供了 DataCache 对象。下表描述了一些用于基本缓存操作的 DataCache 方法。有关如何使用这些方法的详细信息,请参阅使用基本缓存方法(Windows Server AppFabric 缓存)。
方法 | 描述 |
---|---|
向缓存中添加新对象。如果该项已经位于缓存中,则添加将引发异常。 |
|
向缓存中添加新对象或替换现有对象(如果该对象已位于缓存中)。 |
|
从缓存中返回对象。 |
|
从缓存中删除对象。 |
|
在缓存上创建命名区域。保证添加到区域的对象的物理位置位于单个缓存主机上。 |
|
清除已命名区域并从其中删除所有缓存对象。 |
|
删除已命名区域。位于该区域中的所有缓存对象将随该区域一起被删除。 |
|
重置决定对象在缓存中何时过期的超时值。有关详细信息,请参阅过期和逐出(Windows Server AppFabric 缓存)。 |
另请参阅
概念
类概述(Windows Server AppFabric 缓存)
基于标记的方法(Windows Server AppFabric 缓存)
并发方法(Windows Server AppFabric 缓存)
配置方法(Windows Server AppFabric 缓存)
使用基本缓存方法(Windows Server AppFabric 缓存)
Windows Server AppFabric 缓存概念
2011-12-05