ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Classes | Public Member Functions | Protected Attributes | Properties | List of all members
ImageResizer.Plugins.TinyCache.TinyCachePlugin Class Reference
Inheritance diagram for ImageResizer.Plugins.TinyCache.TinyCachePlugin:
Inheritance graph
[legend]
Collaboration diagram for ImageResizer.Plugins.TinyCache.TinyCachePlugin:
Collaboration graph
[legend]

Public Member Functions

bool CanProcess (System.Web.HttpContext current, IResponseArgs e)
 
void Process (System.Web.HttpContext current, IResponseArgs e)
 
IPlugin Install (Configuration.Config c)
 
bool Uninstall (Configuration.Config c)
 
- Public Member Functions inherited from ImageResizer.Caching.ICache
bool CanProcess (HttpContext current, IResponseArgs e)
 Returns false if the cache is unable to process the request. If false, the caller should fall back to a different cache More...
 
void Process (HttpContext current, IResponseArgs e)
 Must update the cache if needed, then either rewrite, redirect or serve the cached data. More...
 
- Public Member Functions inherited from ImageResizer.Plugins.IPlugin
IPlugin Install (Config c)
 Installs the plugin in the specified Config instance. The plugin must handle all the work of loading settings, registering the plugin etc. More...
 
bool Uninstall (Config c)
 Uninstalls the plugin. Should reverse all changes made during Install More...
 

Protected Attributes

string virtualCacheFile = HostingEnvironment.ApplicationVirtualPath.TrimEnd('/') + "/App_Data/tiny_cache.cache"
 

Properties

string VirtualCacheFile [get, set]
 Sets the location of the cache file More...
 
string PhysicalCacheFile [get]
 Returns the physical path of the cache directory specified in VirtualCacheFile. More...
 
int MaxBytes [get]
 30MB is the maxmimum size of the cache. Writing more than that do disk during an image request would cause a timeout for sure. More...
 
int MaxItems [get]
 (De)Serializing more than 1024 items to disk during a request is risky. Sorting more than that can be slow as well. More...
 
bool CanOperate [get]
 
bool HasFileIOPermission [get]
 

Detailed Description

Definition at line 18 of file TinyCachePlugin.cs.

Property Documentation

int ImageResizer.Plugins.TinyCache.TinyCachePlugin.MaxBytes
get

30MB is the maxmimum size of the cache. Writing more than that do disk during an image request would cause a timeout for sure.

Definition at line 51 of file TinyCachePlugin.cs.

int ImageResizer.Plugins.TinyCache.TinyCachePlugin.MaxItems
get

(De)Serializing more than 1024 items to disk during a request is risky. Sorting more than that can be slow as well.

Definition at line 56 of file TinyCachePlugin.cs.

string ImageResizer.Plugins.TinyCache.TinyCachePlugin.PhysicalCacheFile
get

Returns the physical path of the cache directory specified in VirtualCacheFile.

Definition at line 41 of file TinyCachePlugin.cs.

string ImageResizer.Plugins.TinyCache.TinyCachePlugin.VirtualCacheFile
getset

Sets the location of the cache file

Definition at line 28 of file TinyCachePlugin.cs.


The documentation for this class was generated from the following file: