Method Add
Add(String, Object, DateTime)
Adds the specified item into the cache with an expiry time.
Declaration
public override object Add(string key, object entry, DateTime utcExpiry)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | A unique identifier for an item. |
System. |
entry | The content to add to the cache. |
System. |
utcExpiry | The time and date on which the cached item expires. |
Returns
Type | Description |
---|---|
System. |
The item (object) to be stored in the cache. |
Overrides
System.Web.Caching.OutputCacheProvider.Add(System.String, System.Object, System.DateTime)