C# 클래스 Sage.LastModifiedCache

Provides a simple mechanism for saving to and restoring from the ASP.NET cache the last modification dates of local resources.
파일 보기 프로젝트 열기: igorfrance/sage

공개 메소드들

메소드 설명
Get ( string resourcePath ) : DateTime?

Gets the cached last modification date for the specified resource if present, otherwise null.

Put ( string resourcePath, System.DateTime lastModificationDate, List dependencies ) : void

Saves the last modification of the specified resourcePath.

비공개 메소드들

메소드 설명
LastModifiedCache ( SageContext context ) : System

Initializes a new instance of the LastModifiedCache class, using the specified context.

OnCacheItemExpired ( string key, CacheItemUpdateReason reason, object &expensiveObject, System.Web.Caching.CacheDependency &dependency, System.DateTime &absoluteExpiration, System.TimeSpan &slidingExpiration ) : void

메소드 상세

Get() 공개 메소드

Gets the cached last modification date for the specified resource if present, otherwise null.
public Get ( string resourcePath ) : DateTime?
resourcePath string The resource path for which to get the last modification date.
리턴 DateTime?

Put() 공개 메소드

Saves the last modification of the specified resourcePath.
public Put ( string resourcePath, System.DateTime lastModificationDate, List dependencies ) : void
resourcePath string The resource path for which to store the date.
lastModificationDate System.DateTime The last modification date to store.
dependencies List The dependencies of the . If any one of /// these files changes, the cached item will expire and be removed from cache, thereby ensuring that /// the cached date is correct; its absence would indicate that the last modification date has expired /// (or has never been saved, in any case causing the caller to get a fresh last modification date)
리턴 void