C# 클래스 Alexandria.Client.Infrastructure.PersistentCache

Implement a trivial persistent cache. Any key is written to a file on disk. This will _not_ scale properly when the number of keys in the cache grows over several thousands, but it is perfectly fine for smaller quanitites of data.
상속: ICache
파일 보기 프로젝트 열기: ayende/Alexandria

공개 메소드들

메소드 설명
Get ( string key ) : CachedData
PersistentCache ( string basePath ) : System
Put ( string key, System.DateTime timestamp, object instance ) : void
Remove ( string key ) : void

비공개 메소드들

메소드 설명
EscapeKey ( string key ) : string

메소드 상세

Get() 공개 메소드

public Get ( string key ) : CachedData
key string
리턴 CachedData

PersistentCache() 공개 메소드

public PersistentCache ( string basePath ) : System
basePath string
리턴 System

Put() 공개 메소드

public Put ( string key, System.DateTime timestamp, object instance ) : void
key string
timestamp System.DateTime
instance object
리턴 void

Remove() 공개 메소드

public Remove ( string key ) : void
key string
리턴 void