C# Class Nancy.Demo.Caching.CachingBootstrapper

Inheritance: DefaultNancyBootstrapper
Show file Open project: NashDotNet/ravendb_nancyfx_presentation

Public Methods

Method Description
CheckCache ( Nancy.NancyContext context ) : Response

Check to see if we have a cache entry - if we do, see if it has expired or not, if it hasn't then return it, otherwise return null;

SetCache ( Nancy.NancyContext context ) : void

Adds the current response to the cache if required Only stores by Path and stores the response in a dictionary. Do not use this as an actual cache :-)

Protected Methods

Method Description
InitialiseInternal ( TinyIoC container ) : void

Method Details

CheckCache() public method

Check to see if we have a cache entry - if we do, see if it has expired or not, if it hasn't then return it, otherwise return null;
public CheckCache ( Nancy.NancyContext context ) : Response
context Nancy.NancyContext Current context
return Nancy.Response

InitialiseInternal() protected method

protected InitialiseInternal ( TinyIoC container ) : void
container TinyIoC
return void

SetCache() public method

Adds the current response to the cache if required Only stores by Path and stores the response in a dictionary. Do not use this as an actual cache :-)
public SetCache ( Nancy.NancyContext context ) : void
context Nancy.NancyContext Current context
return void