C# Class Umbraco.Storage.S3.Services.Impl.FileSystemCacheProvider

Inheritance: ICacheProvider
Datei anzeigen Open project: ElijahGlover/Umbraco-S3-Provider Class Usage Examples

Public Methods

Method Description
Exists ( string key ) : bool
FileSystemCacheProvider ( System.TimeSpan timeToLive, string cachePath, IFileSystemWrapper fileSystemWrapper = null ) : System
Persist ( string key, Stream stream ) : void
Resolve ( string key ) : Stream

Private Methods

Method Description
IsExpired ( System.DateTime time ) : bool
ResolveStorageKey ( string value ) : string
ResolveStoragePath ( string value ) : string

Method Details

Exists() public method

public Exists ( string key ) : bool
key string
return bool

FileSystemCacheProvider() public method

public FileSystemCacheProvider ( System.TimeSpan timeToLive, string cachePath, IFileSystemWrapper fileSystemWrapper = null ) : System
timeToLive System.TimeSpan
cachePath string
fileSystemWrapper IFileSystemWrapper
return System

Persist() public method

public Persist ( string key, Stream stream ) : void
key string
stream Stream
return void

Resolve() public method

public Resolve ( string key ) : Stream
key string
return Stream