ThumbnailCache Class

Provides methods for handling caching of thumbnails, used by FileManager.

Definition

Namespace: GleamTech.FileUltimate.AspNet.UI
Assembly: GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 9.2.0
C#
public class ThumbnailCache : FileCache
Inheritance
Object    FileCache    ThumbnailCache

Constructors

ThumbnailCache Initializes a new instance of the ThumbnailCache class.

Properties

AutoTrimInterval Gets or sets a value that specifies the interval to run automatic cache trimming (clean up). Cached items older than MaxAge will be removed when the cache is trimmed. If the value is 0 or negative, the auto trim is disabled. The default value is 20 minutes.
(Inherited from FileCache)
LocationId Gets the unique identifier for the location to store cached files.
(Inherited from FileCache)
LocationString Gets the string representation of location to store cached files.
(Inherited from FileCache)
MaxAge Gets or sets a value that specifies the maximum amount of time to consider a cached item fresh and keep it stored in the cache. Cached items older than this age will be removed when the cache trimming (clean up) runs (when auto trim is run or when Trim is manually called). The default value is 90 days.
(Inherited from FileCache)
WaitTimeout Gets or sets a value that specifies the maximum amount of time to wait for a cached item to be available (wait for a file lock from other threads or processes to become available, i.e. wait for an ongoing caching of the same file to complete) before giving up on the cache request. The default value is 5 minutes.
(Inherited from FileCache)

Methods

AddOrUpdate
(Inherited from FileCache)
Contains
(Inherited from FileCache)
Get
(Inherited from FileCache)
GetOrAdd
(Inherited from FileCache)
GetOrAddThumbnail Gets or adds a thumbnail for file.
GetOrAddWebSafeImage Gets or adds a web safe image for file.
LogEvent
(Inherited from FileCache)
LogGlobalEvent
(Inherited from FileCache)
OnMigrate Implement this method in a subclass to return migrations ro execute for its specific cache files.
(Overrides FileCache.OnMigrate(Version))
Remove
(Inherited from FileCache)
Trim Trims the cache (cleans up the expired cache items, i.e. cached items older than MaxAge).
(Inherited from FileCache)

See Also