Class IgniteOutputCacheProvider
ASP.NET output cache provider that uses Ignite cache as a storage.
You can either start Ignite yourself, and provide gridName
attribute,
or provide igniteConfigurationSectionName
attribute to start Ignite automatically from specified
configuration section (see IgniteConfigurationSection)
using igniteConfigurationSectionName
.
cacheName
attribute specifies Ignite cache name to use for data storage. This attribute can be omitted
if cache name is null.
Inheritance
Namespace: Apache.Ignite.AspNet
Assembly: Apache.Ignite.AspNet.dll
Syntax
public class IgniteOutputCacheProvider : OutputCacheProvider
Methods
Add(String, Object, DateTime)
Inserts the specified entry into the output cache.
Declaration
public override object Add(string key, object entry, DateTime utcExpiry)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | A unique identifier for |
System.Object | entry | The content to add to the output cache. |
System.DateTime | utcExpiry | The time and date on which the cached entry expires. |
Returns
Type | Description |
---|---|
System.Object | A reference to the specified provider. |
Overrides
Get(String)
Returns a reference to the specified entry in the output cache.
Declaration
public override object Get(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | A unique identifier for a cached entry in the output cache. |
Returns
Type | Description |
---|---|
System.Object | The |
Overrides
Initialize(String, NameValueCollection)
Initializes the provider.
Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The friendly name of the provider. |
System.Collections.Specialized.NameValueCollection | config | A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider. |
Remove(String)
Removes the specified entry from the output cache.
Declaration
public override void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The unique identifier for the entry to remove from the output cache. |
Overrides
Set(String, Object, DateTime)
Inserts the specified entry into the output cache, overwriting the entry if it is already cached.
Declaration
public override void Set(string key, object entry, DateTime utcExpiry)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | A unique identifier for |
System.Object | entry | The content to add to the output cache. |
System.DateTime | utcExpiry | The time and date on which the cached |