C# 클래스 Sage.Views.ViewCache

Implements a simple cache store for saving and restoring transformed views.
파일 보기 프로젝트 열기: igorfrance/sage

공개 메소드들

메소드 설명
Get ( string viewPath, string groupName = null ) : string

Gets the specified view path.

GetLastModified ( string path, string groupName = null ) : DateTime?

Gets the last modified date of the specified path.

Has ( string viewPath, string groupName = null ) : bool

Determines whether the specified view path has been cached, and is still valid.

Save ( string viewPath, string content, string groupName = null ) : bool

Saves the specified content to the cache.

ViewCache ( SageContext context ) : System

Initializes a new instance of the ViewCache class.

비공개 메소드들

메소드 설명
GetCachePath ( string viewPath, string groupName = null ) : string

메소드 상세

Get() 공개 메소드

Gets the specified view path.
public Get ( string viewPath, string groupName = null ) : string
viewPath string The view path.
groupName string Optional name of the cache group that the belongs to.
리턴 string

GetLastModified() 공개 메소드

Gets the last modified date of the specified path.
public GetLastModified ( string path, string groupName = null ) : DateTime?
path string The source path of the cached item.
groupName string Optional name of the cache group that the belongs to.
리턴 DateTime?

Has() 공개 메소드

Determines whether the specified view path has been cached, and is still valid.
public Has ( string viewPath, string groupName = null ) : bool
viewPath string The view path to check.
groupName string Optional name of the cache group that the belongs to.
리턴 bool

Save() 공개 메소드

Saves the specified content to the cache.
public Save ( string viewPath, string content, string groupName = null ) : bool
viewPath string The view path.
content string The content.
groupName string Optional name of the cache group that the belongs to.
리턴 bool

ViewCache() 공개 메소드

Initializes a new instance of the ViewCache class.
public ViewCache ( SageContext context ) : System
context SageContext The current context.
리턴 System