C# Class MapAround.Caching.WebCacheAccessor

Provide access to caching features in the System.Web.Caching.Cache.
Inheritance: FeatureCollectionCacheAccessorBase
Exibir arquivo Open project: gkrsu/maparound.core

Public Methods

Method Description
Clear ( ) : void

Removes all collections corresponding to the current Key from cache.

WebCacheAccessor ( Cache cache ) : System.Text

Initializes a new instance of the MapAround.Caching.WebCacheAccessor

Protected Methods

Method Description
AddOrReplaceAttributeNames ( IList attributeNames ) : void

Saves an attribute list into cache.

AddOrReplaceCollection ( ICollection features, FeatureType featureType ) : void

Adds a collection to the cache or replaces it.

AddOrReplaceIndex ( ISpatialIndex index, FeatureType featureType ) : void

Adds a feature index to the cache or replaces it.

CheckKeyString ( string key ) : bool

Checks a value for validity when using as the access key.

ExtractAttributeNames ( ) : IList

Extracts an attribute list from cache.

ExtractCollection ( FeatureType featureType ) : Collection

Extracts a collection from cache.

ExtractIndex ( FeatureType featureType ) : ISpatialIndex

Extracts a feature index from cache.

Private Methods

Method Description
checkCache ( ) : void
featureTypeSubKey ( FeatureType featureType ) : string

Method Details

AddOrReplaceAttributeNames() protected method

Saves an attribute list into cache.
protected AddOrReplaceAttributeNames ( IList attributeNames ) : void
attributeNames IList Attribute list
return void

AddOrReplaceCollection() protected method

Adds a collection to the cache or replaces it.
protected AddOrReplaceCollection ( ICollection features, FeatureType featureType ) : void
features ICollection Feature collection
featureType FeatureType Feature type
return void

AddOrReplaceIndex() protected method

Adds a feature index to the cache or replaces it.
protected AddOrReplaceIndex ( ISpatialIndex index, FeatureType featureType ) : void
index ISpatialIndex Spatial index
featureType FeatureType Feature type
return void

CheckKeyString() protected method

Checks a value for validity when using as the access key.
protected CheckKeyString ( string key ) : bool
key string Value need to be checked
return bool

Clear() public method

Removes all collections corresponding to the current Key from cache.
public Clear ( ) : void
return void

ExtractAttributeNames() protected method

Extracts an attribute list from cache.
protected ExtractAttributeNames ( ) : IList
return IList

ExtractCollection() protected method

Extracts a collection from cache.
protected ExtractCollection ( FeatureType featureType ) : Collection
featureType FeatureType Type of features in the collection
return Collection

ExtractIndex() protected method

Extracts a feature index from cache.
protected ExtractIndex ( FeatureType featureType ) : ISpatialIndex
featureType FeatureType Feature type
return ISpatialIndex

WebCacheAccessor() public method

Initializes a new instance of the MapAround.Caching.WebCacheAccessor
public WebCacheAccessor ( Cache cache ) : System.Text
cache System.Web.Caching.Cache A System.Web.Caching.Cache instance
return System.Text