C# Class ImageProcessor.Web.Caching.CacheIndexer

Represents an in memory collection of keys and values whose operations are concurrent.
显示文件 Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method Description
Add ( CachedImage cachedImage ) : CachedImage

Adds the specified key and value to the dictionary or returns the value if it exists.

Get ( string cachedPath ) : CachedImage

Gets the CachedImage associated with the specified key.

Remove ( string cachedPath ) : bool

Removes the value associated with the specified key.

Method Details

Add() public static method

Adds the specified key and value to the dictionary or returns the value if it exists.
public static Add ( CachedImage cachedImage ) : CachedImage
cachedImage CachedImage /// The cached image to add. ///
return CachedImage

Get() public static method

Gets the CachedImage associated with the specified key.
public static Get ( string cachedPath ) : CachedImage
cachedPath string /// The cached path of the value to get. ///
return CachedImage

Remove() public static method

Removes the value associated with the specified key.
public static Remove ( string cachedPath ) : bool
cachedPath string /// The key of the item to remove. ///
return bool