FileCache ClassNemiro.Data.dll
Implements the cache in file system.
Inheritance Hierarchy

System Object
  System.Runtime.Caching ObjectCache
    Nemiro.Data.Caching FileCache

Namespace: Nemiro.Data.Caching
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax

public class FileCache : ObjectCache

The FileCache type exposes the following members.

Constructors

  NameDescription
Public methodFileCache 
Initializes a new instance of the file cache.
Public methodFileCache(SerializationBinder)
Initializes a new instance of the file cache with custom type binder.
Public methodFileCache(String)
Initializes a new instance of the file cache with specified storage path.
Public methodFileCache(String, Int64)
Initializes a new instance of the file cache with specified storage path and memory buffer size.
Public methodFileCache(String, SerializationBinder)
Initializes a new instance of the file cache with specified storage path and custom type binder.
Public methodFileCache(String, Int64, SerializationBinder)
Initializes a new instance of the file cache.
Public methodFileCache(String, Int64, SerializationBinder, TimeSpan, TimeSpan)
Initializes a new instance of the file cache.
Top
Methods

  NameDescription
Public methodAdd(CacheItem, CacheItemPolicy) (Inherited from ObjectCache.)
Public methodAdd(String, Object, DateTimeOffset, String) (Inherited from ObjectCache.)
Public methodAdd(String, Object, CacheItemPolicy, String) (Inherited from ObjectCache.)
Public methodAddOrGetExisting(CacheItem, CacheItemPolicy)
Inserts a cache entry into the cache.
(Overrides ObjectCache AddOrGetExisting(CacheItem, CacheItemPolicy).)
Public methodAddOrGetExisting(String, Object, DateTimeOffset, String)
Adds a cache entry into the cache using the specified key and a value and an absolute expiration value.
(Overrides ObjectCache AddOrGetExisting(String, Object, DateTimeOffset, String).)
Public methodAddOrGetExisting(String, Object, CacheItemPolicy, String)
Inserts a cache entry into the cache.
(Overrides ObjectCache AddOrGetExisting(String, Object, CacheItemPolicy, String).)
Public methodCleanup
Removes outdated entries from the cache.
Public methodCleanupAll
Removes all entries from the cache.
Public methodContains
Determines whether a cache entry exists in the cache.
(Overrides ObjectCache Contains(String, String).)
Public methodCreateCacheEntryChangeMonitor
Creates a CacheEntryChangeMonitor object that can trigger events in response to changes to specified cache entries.
(Overrides ObjectCache CreateCacheEntryChangeMonitor(IEnumerable String , String).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGet
Returns an entry from the cache.
(Overrides ObjectCache Get(String, String).)
Public methodGetCacheItem
Returns the specified entry from the cache as a CacheItem instance.
(Overrides ObjectCache GetCacheItem(String, String).)
Public methodGetCount
Returns the total number of cache entries in the cache.
(Overrides ObjectCache GetCount(String).)
Protected methodGetEnumerator 
Creates an enumerator that can be used to iterate through a collection of cache entries.
(Overrides ObjectCache GetEnumerator .)
Public methodGetEnumerator(String)
Creates an enumerator that can be used to iterate through a collection of cache entries.
Public methodGetHashCode (Inherited from Object.)
Public methodGetKeys
Returns a list of all the keys for the specified region.
Public methodGetPolicy
Returns cache entry policy.
Public methodGetType (Inherited from Object.)
Public methodGetValues(String,  String ) (Inherited from ObjectCache.)
Public methodGetValues(IEnumerable String , String)
Returns a set of cache entries that correspond to the specified keys.
(Overrides ObjectCache GetValues(IEnumerable String , String).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes a cache entry from the cache.
(Overrides ObjectCache Remove(String, String).)
Public methodSet(CacheItem, CacheItemPolicy)
Inserts a cache entry into the cache by using a CacheItem instance to supply the key and value for the cache entry.
(Overrides ObjectCache Set(CacheItem, CacheItemPolicy).)
Public methodSet(String, Object, DateTimeOffset, String)
Inserts a cache entry into the cache by using a key and a value and specifies time-based expiration details.
(Overrides ObjectCache Set(String, Object, DateTimeOffset, String).)
Public methodSet(String, Object, CacheItemPolicy, String)
Inserts a cache entry into the cache by using a key and a value and eviction.
(Overrides ObjectCache Set(String, Object, CacheItemPolicy, String).)
Public methodToString
Returns cache storage path.
(Overrides Object ToString .)
Top
Properties

  NameDescription
Public propertyAccessTimeout
Waiting time gain access to the file of cache entry. After this time, if the file entry are not available, an exception is thrown.
Public propertyBufferAccessTimeout
Waiting time gain access to the buffer.
Public propertyBufferSize
Memory buffer size (Kb).
Public propertyCachePath
Cache storage path.
Public propertyDefaultCacheCapabilities
Gets a description of the features that the cache provides.
(Overrides ObjectCache DefaultCacheCapabilities.)
Public propertyDefaultPolicy
Default cache policy.
Public propertyDefaultRegion
Default region name.
Public propertyItem
Gets or sets a value in the cache by using the default indexer property for an instance of the [F:FileCache] class.
(Overrides ObjectCache Item String .)
Public propertyName
Gets the name of the cache.
(Overrides ObjectCache Name.)
Top
See Also