Implements the cache in file system.
Inheritance Hierarchy
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
The FileCache type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileCache |
Initializes a new instance of the file cache.
| |
FileCache(SerializationBinder) |
Initializes a new instance of the file cache with custom type binder.
| |
FileCache(String) |
Initializes a new instance of the file cache with specified storage path.
| |
FileCache(String, Int64) |
Initializes a new instance of the file cache with specified storage path and memory buffer size.
| |
FileCache(String, SerializationBinder) |
Initializes a new instance of the file cache with specified storage path and custom type binder.
| |
FileCache(String, Int64, SerializationBinder) |
Initializes a new instance of the file cache.
| |
FileCache(String, Int64, SerializationBinder, TimeSpan, TimeSpan) |
Initializes a new instance of the file cache.
|
Methods
Name | Description | |
---|---|---|
Add(CacheItem, CacheItemPolicy) | (Inherited from ObjectCache.) | |
Add(String, Object, DateTimeOffset, String) | (Inherited from ObjectCache.) | |
Add(String, Object, CacheItemPolicy, String) | (Inherited from ObjectCache.) | |
AddOrGetExisting(CacheItem, CacheItemPolicy) |
Inserts a cache entry into the cache.
(Overrides ObjectCache AddOrGetExisting(CacheItem, CacheItemPolicy).) | |
AddOrGetExisting(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).) | |
AddOrGetExisting(String, Object, CacheItemPolicy, String) |
Inserts a cache entry into the cache.
(Overrides ObjectCache AddOrGetExisting(String, Object, CacheItemPolicy, String).) | |
Cleanup |
Removes outdated entries from the cache.
| |
CleanupAll |
Removes all entries from the cache.
| |
Contains |
Determines whether a cache entry exists in the cache.
(Overrides ObjectCache Contains(String, String).) | |
CreateCacheEntryChangeMonitor |
Creates a CacheEntryChangeMonitor object that can trigger events in response to changes to specified cache entries.
(Overrides ObjectCache CreateCacheEntryChangeMonitor(IEnumerable String , String).) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
Get |
Returns an entry from the cache.
(Overrides ObjectCache Get(String, String).) | |
GetCacheItem |
Returns the specified entry from the cache as a CacheItem instance.
(Overrides ObjectCache GetCacheItem(String, String).) | |
GetCount |
Returns the total number of cache entries in the cache.
(Overrides ObjectCache GetCount(String).) | |
GetEnumerator |
Creates an enumerator that can be used to iterate through a collection of cache entries.
(Overrides ObjectCache GetEnumerator .) | |
GetEnumerator(String) |
Creates an enumerator that can be used to iterate through a collection of cache entries.
| |
GetHashCode | (Inherited from Object.) | |
GetKeys |
Returns a list of all the keys for the specified region.
| |
GetPolicy |
Returns cache entry policy.
| |
GetType | (Inherited from Object.) | |
GetValues(String, String ) | (Inherited from ObjectCache.) | |
GetValues(IEnumerable String , String) |
Returns a set of cache entries that correspond to the specified keys.
(Overrides ObjectCache GetValues(IEnumerable String , String).) | |
MemberwiseClone | (Inherited from Object.) | |
Remove |
Removes a cache entry from the cache.
(Overrides ObjectCache Remove(String, String).) | |
Set(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).) | |
Set(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).) | |
Set(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).) | |
ToString |
Returns cache storage path.
(Overrides Object ToString .) |
Properties
Name | Description | |
---|---|---|
AccessTimeout |
Waiting time gain access to the file of cache entry. After this time, if the file entry are not available, an exception is thrown.
| |
BufferAccessTimeout |
Waiting time gain access to the buffer.
| |
BufferSize |
Memory buffer size (Kb).
| |
CachePath |
Cache storage path.
| |
DefaultCacheCapabilities |
Gets a description of the features that the cache provides.
(Overrides ObjectCache DefaultCacheCapabilities.) | |
DefaultPolicy |
Default cache policy.
| |
DefaultRegion |
Default region name.
| |
Item |
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 .) | |
Name |
Gets the name of the cache.
(Overrides ObjectCache Name.) |
See Also