C# Class AgileWallaby.Ehcache.EhcacheServerRequest

Inheritance: IEhcacheServerRequest
Show file Open project: jimmcslim/Ehcache.Net Class Usage Examples

Public Methods

Method Description
Contains ( string cache, string key ) : bool
GetCount ( string cache ) : int
GetElement ( string cache, string key, string &contentType ) : string
PutElement ( string cache, string key, string serializedValue, string contentType, int timeToLive = null ) : void
Remove ( string cache, string key ) : object

Private Methods

Method Description
CreateWebRequestForCache ( string method, string cache ) : HttpWebRequest
CreateWebRequestForCacheElement ( string method, string cache, string key ) : HttpWebRequest
EhcacheServerRequest ( Uri endpoint, string defaultCache, IMetadataSerializationService serializerService ) : System
GetRequestStream ( HttpWebRequest req ) : Stream
GetResponse ( HttpWebRequest req ) : HttpWebResponse
IsResponseExceptionHttp404NotFound ( WebException e ) : bool

Method Details

Contains() public method

public Contains ( string cache, string key ) : bool
cache string
key string
return bool

GetCount() public method

public GetCount ( string cache ) : int
cache string
return int

GetElement() public method

public GetElement ( string cache, string key, string &contentType ) : string
cache string
key string
contentType string
return string

PutElement() public method

public PutElement ( string cache, string key, string serializedValue, string contentType, int timeToLive = null ) : void
cache string
key string
serializedValue string
contentType string
timeToLive int
return void

Remove() public method

public Remove ( string cache, string key ) : object
cache string
key string
return object