Try Playground
Show / Hide Table of Contents

Class CachingOptions

Provides the user to configure different options that can be set while caching a certain item/result set.

Inheritance
System.Object
CachingOptions
Inherited Members
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.Integrations.EntityFramework.CachingProvider.dll
Syntax
public class CachingOptions : ICloneable

Constructors

Name Description
CachingOptions()

Creates an instance of CachingOptions with default values.

Properties

Name Description
AbsoluteExpirationTime

Returns the absolute time when the item will expire.

DbSyncDependency

Specifies whether to create a database dependency with the result set or not.

ExpirationType

Returns the configured expiration type.

Priority

Specifies the priority of the item. Low priority items are evicted first when eviction triggers. By default the priority is .

QueryIdentifier

Identifier for a query which is added as a against the result set of the query in cache. This MUST be unique for each unique query. QueryIdentifier is used to regenerate the result set from the cache upon execution of the same query again. The user must maintain a mapping of the query against the query identifier to be used in the future. If not specified, NCache adds the query string itself as the tag (making it unique for each unique query). For example, a query which returns a Customer is not tagged by the user. The next time the same query is executed, the query string is searched as a tag within cache and if it exists, the result set against it will be returned.

SlidingExpirationTime

Returns the sliding expiration time span of the item that will be cached.

StoreAs

Specifies whether the result set should be stored as seperate entities or as a collection.

Methods

Name Description
Clone()

Creates a shallow copy of this instance.

SetAbsoluteExpiration(DateTime)

Sets the absolute expiration time of the caching item. Only one type of expiration, either absoute expiration or sliding expiration, can be configured at one time.

SetSlidingExpiration(TimeSpan)

Sets the sliding expiration time of the caching item. Only one type of expiration, either absoute expiration or sliding expiration, can be configured at one time.

In This Article
  • Constructors
  • Properties
  • Methods

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • 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 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top