C# Класс WhoCanHelpMe.Infrastructure.Caching.HttpCachingService

Наследование: ICachingService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DurationInSeconds ( CacheDuration duration ) : int
ShouldCache ( ICacheKey key ) : bool

Описание методов

Add() публичный Метод

public Add ( ICacheKey key, object value ) : void
key ICacheKey
value object
Результат void

Add() публичный Метод

public Add ( ICacheKey key, object value, CacheDuration cacheDuration ) : void
key ICacheKey
value object
cacheDuration CacheDuration
Результат void

Contains() публичный Метод

public Contains ( ICacheKey key ) : bool
key ICacheKey
Результат bool

Flush() публичный Метод

public Flush ( ) : void
Результат void

Flush() публичный Метод

public Flush ( CacheName cache ) : void
cache CacheName
Результат void

HttpCachingService() публичный Метод

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.
Результат System

Remove() публичный Метод

public Remove ( ICacheKey key ) : void
key ICacheKey
Результат void

this() публичный Метод

public this ( ICacheKey key ) : object
key ICacheKey
Результат object