C# Class NSoft.NFramework.Data.NHibernateEx.NHCaches.SysCache.SysCache

.NET System의 메모리 Cache 시스템을 이용한 Cache 입니다.
Inheritance: ICache
Mostrar archivo Open project: debop/NFramework

Public Methods

Method Description
Clear ( ) : void

Clear the Cache

Destroy ( ) : void

Clean up.

Get ( object key ) : object

Get the object from the Cache

Lock ( object key ) : void

If this is a clustered cache, lock the item

NextTimestamp ( ) : long

Generate a timestamp

Put ( object key, object value ) : void
Remove ( object key ) : void

Remove an item from the Cache.

SysCache ( ) : System
SysCache ( string region ) : System
SysCache ( string region, string>.IDictionary properties ) : System
Unlock ( object key ) : void

If this is a clustered cache, unlock the item

Private Methods

Method Description
Configure ( string>.IDictionary props ) : void
GenerateRootCacheKey ( ) : string
GetCacheKey ( object key ) : string
RemoveRootCacheKey ( ) : void
RootCacheItemRemoved ( string key, object value, CacheItemRemovedReason reason ) : void
StoreRootCacheKey ( ) : void

Method Details

Clear() public method

Clear the Cache
public Clear ( ) : void
return void

Destroy() public method

Clean up.
public Destroy ( ) : void
return void

Get() public method

Get the object from the Cache
public Get ( object key ) : object
key object
return object

Lock() public method

If this is a clustered cache, lock the item
public Lock ( object key ) : void
key object The Key of the Item in the Cache to lock.
return void

NextTimestamp() public method

Generate a timestamp
public NextTimestamp ( ) : long
return long

Put() public method

public Put ( object key, object value ) : void
key object
value object
return void

Remove() public method

Remove an item from the Cache.
public Remove ( object key ) : void
key object The Key of the Item in the Cache to remove.
return void

SysCache() public method

public SysCache ( ) : System
return System

SysCache() public method

public SysCache ( string region ) : System
region string
return System

SysCache() public method

public SysCache ( string region, string>.IDictionary properties ) : System
region string
properties string>.IDictionary
return System

Unlock() public method

If this is a clustered cache, unlock the item
public Unlock ( object key ) : void
key object The Key of the Item in the Cache to unlock.
return void