• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Class NOutputCacheProvider

Implements all methods of the System.Web.Caching.OutputCacheProvider.

Inheritance
System.Object
System.Configuration.Provider.ProviderBase
System.Web.Caching.OutputCacheProvider
NOutputCacheProvider
Inherited Members
System.Configuration.Provider.ProviderBase.Name
System.Configuration.Provider.ProviderBase.Description
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Alachisoft.NCache.OutputCacheProvider.dll
Syntax
public class NOutputCacheProvider : OutputCacheProvider

Properties

IsHookAttached

Hooks allow users to group together the output of pages/controls before inserting it into the cache.

Declaration
public static bool IsHookAttached { get; set; }
Property Value
Type Description
System.Boolean

Returns true if the hook is attached. Otherwise, it returns false.

Methods

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.String key

A unique identifier for an item.

System.Object entry

The content to add to the cache.

System.DateTime utcExpiry

The time and date on which the cached item expires.

Returns
Type Description
System.Object

The item (object) to be stored in the cache.

Overrides
System.Web.Caching.OutputCacheProvider.Add(System.String, System.Object, System.DateTime)

Finalize()

Performs application-defined tasks associated with the freeing, releasing, or resetting unmanaged resources.

Declaration
protected void Finalize()

Get(String)

Retrieves the specified item from the cache.

Declaration
public override object Get(string key)
Parameters
Type Name Description
System.String key

A unique identifier for a cached item in the output cache.

Returns
Type Description
System.Object

The key value that identifies the specified item in the cache, or null if the specified item is not in the cache.

Overrides
System.Web.Caching.OutputCacheProvider.Get(System.String)

Initialize(String, NameValueCollection)

Initializes the cache.

Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type Name Description
System.String name

The name of cache.

System.Collections.Specialized.NameValueCollection config

Collection of associated System.String keys and System.String values.

Overrides
System.Configuration.Provider.ProviderBase.Initialize(System.String, System.Collections.Specialized.NameValueCollection)

Remove(String)

Removes the specified item from the cache.

Declaration
public override void Remove(string key)
Parameters
Type Name Description
System.String key

Unique key of the item to be removed.

Overrides
System.Web.Caching.OutputCacheProvider.Remove(System.String)

Set(String, Object, DateTime)

Inserts the specified item into the cache, overwriting the item 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 item.

System.Object entry

The content to add to the output cache.

System.DateTime utcExpiry

The time and date on which the cached item expires.

Overrides
System.Web.Caching.OutputCacheProvider.Set(System.String, System.Object, System.DateTime)

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top