C# Class WhoCanHelpMe.Infrastructure.Caching.HttpCachingService

Inheritance: ICachingService
Mostra file Open project: jongeorge1/Who-Can-Help-Me

Public Methods

Method Description
Add ( ICacheKey key, object value ) : void
Add ( ICacheKey key, object value, CacheDuration cacheDuration ) : void
Contains ( ICacheKey key ) : bool
Flush ( ) : void
Flush ( CacheName cache ) : void
HttpCachingService ( bool enabled, int>.Dictionary cacheDurations, CacheDuration>.Dictionary caches ) : System

Constructor.

Remove ( ICacheKey key ) : void
this ( ICacheKey key ) : object

Private Methods

Method Description
DurationInSeconds ( CacheDuration duration ) : int
ShouldCache ( ICacheKey key ) : bool

Method Details

Add() public method

public Add ( ICacheKey key, object value ) : void
key ICacheKey
value object
return void

Add() public method

public Add ( ICacheKey key, object value, CacheDuration cacheDuration ) : void
key ICacheKey
value object
cacheDuration CacheDuration
return void

Contains() public method

public Contains ( ICacheKey key ) : bool
key ICacheKey
return bool

Flush() public method

public Flush ( ) : void
return void

Flush() public method

public Flush ( CacheName cache ) : void
cache CacheName
return void

HttpCachingService() public method

Constructor.
public HttpCachingService ( bool enabled, int>.Dictionary cacheDurations, CacheDuration>.Dictionary caches ) : System
enabled bool True to turn standard caching on, false to disable it.
cacheDurations int>.Dictionary
caches CacheDuration>.Dictionary A dictionary in which the keys are the names of the caches and the values indicate whether those caches are enabled or not.
return System

Remove() public method

public Remove ( ICacheKey key ) : void
key ICacheKey
return void

this() public method

public this ( ICacheKey key ) : object
key ICacheKey
return object