Microsoft Application Block for .NET - Cache

王朝c#·作者佚名  2006-01-09
宽屏版  字体: |||超大  

Microsoft Application Block for .NET

- Cache

1. 工作流

2. Cache 的主要接口

· IDataProtection

保护Cache数据,Cache Framework提供的有:DefaultDataProtection

· ICacheItemExpiration

Cache数据过期,Cache Framework提供的有:AbsoluteTime, ExtendedFormatTime, FileDependency, SlidingTime.

· IScavengingAlgorithm

自动清除Cache项目,Cache Framework提供的有:LruScavenging

· ICacheStorage

Cache的保存,Cache Framework提供的有:MmfCacheStorage,

SingletonCacheStorage,SqlServerCacheStorage

3. 主要类

· Cache manager

· Cache service

· Cache storage

4. 配置文件

主要对数据保护,数据过期,数据清除,数据保存进行配置。

5. 调用方法

CacheManager.Add 方法增加一个对象到Cache

CacheManager.GetData或GetItem方法从Cache获得一个对象

CacheManager.Flush和Remove方法将清空Cache或移除一个对象

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有