C# Class Spring.Web.Support.SharedStateResourceCache

Resource cache implementation that uses Spring.NET page/handler state to cache resources.
Inheritance: Spring.Globalization.AbstractResourceCache
Mostrar archivo Open project: spring-projects/spring-net

Public Methods

Method Description
SharedStateResourceCache ( ISharedStateAware sharedStateHolder ) : System.Collections.Generic

Creates a new cache instance and attaches it to the given sharedStateHolder

Protected Methods

Method Description
GetResources ( string cacheKey ) : IList

Gets the list of resources from cache.

PutResources ( string cacheKey, IList resources ) : void

Puts the list of resources in the cache.

Method Details

GetResources() protected method

Gets the list of resources from cache.
protected GetResources ( string cacheKey ) : IList
cacheKey string Cache key to use for lookup.
return IList

PutResources() protected method

Puts the list of resources in the cache.
protected PutResources ( string cacheKey, IList resources ) : void
cacheKey string Cache key to use for the specified resources.
resources IList A list of resources to cache.
return void

SharedStateResourceCache() public method

Creates a new cache instance and attaches it to the given sharedStateHolder
public SharedStateResourceCache ( ISharedStateAware sharedStateHolder ) : System.Collections.Generic
sharedStateHolder ISharedStateAware the holder of the shared state dictionary to be used for caching.
return System.Collections.Generic