Microsoft Application Block for .NET - Cache

xiaoxiao2021-03-06  23

Microsoft Application Block for .NET

- cache

Workflow

2. Cache's main interface

· IDataProtection

Protect Cache data, Cache Framework provides: defaultdataprote

· IcacheiteMexpiration

Cache data expires, Cache Framework offers: absolutetime, extendedformedformattime, FileDependency, SlidingTime.

ISCAVENGINGALGORITHM

Automatically clear the Cache project, Cache Framework provides: lruscavenging

· IcacheStorage

Cache Save, Cache Framework offers: MMFCacheStorage,

SingletoncacheStorage, SQLSERVERCACHESTORAGE

3. Major class

· Cache Manager

Cache Service

Cache Storage

4. Profile

Mainly configured for data protection, data expiration, data clearance, and data storage.

5. Call method

CacheManager.add method Add an object to cache

CacheManager.getdata or getItem method gets an object from cache

CacheManager.flush and remove methods will empty cache or remove an object

-----------------------------------------------

Friendly link Flying Computer Service Station Gold Embodometer Accounting Studio --------------------------------------- ------------

Friendly link Flying Computer Service Station Gold Caucasus Accounting Studio

转载请注明原文地址:https://www.9cbs.com/read-81040.html

New Post(0)