Method PutItem
PutItem(String, DbResultItem, DbCommand, CachingOptions)
Adds the specified entry to the cache.
Declaration
public void PutItem(string key, DbResultItem resultItem, DbCommand dbCommand, CachingOptions cachingOption)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The entry key. |
| Alachisoft.NCache.Integrations.EntityFramework.CacheEntry.DbResultItem | resultItem | The entry value. |
| System.Data.Common.DbCommand | dbCommand | Represents an SQL command to create database dependency. |
| CachingOptions | cachingOption | Different options like Absolute expiration, sliding expiration etc. |