C# Class Rest4Net.IronCache.IronCacheProvider

Inheritance: RestApiProvider
Exibir arquivo Open project: acropolium/Rest4Net

Public Methods

Method Description
Caches ( uint page ) : IEnumerable
Delete ( string cacheName, string key ) : bool
Get ( string cacheName, string key ) : string
Increment ( string cacheName, string key, int amount ) : int
IronCacheProvider ( string token, string projectId, Provider provider = Provider.AWS ) : System
Put ( string cacheName, string key, int value, int expiresIn = 604800, bool replace = false, bool add = false ) : bool
Put ( string cacheName, string key, string value, int expiresIn = 604800, bool replace = false, bool add = false ) : bool

Protected Methods

Method Description
BuildWithPath ( string path, RequestType type = RequestType.Get ) : Command
Cmd ( string path, RequestType requestType = RequestType.Get ) : Command

Private Methods

Method Description
GetProviderHost ( Provider provider ) : string
JsonPreparer ( JToken input ) : JToken
RunInfo ( string path, RequestType type = RequestType.Post, string body = null ) : InfoImpl

Method Details

BuildWithPath() protected method

protected BuildWithPath ( string path, RequestType type = RequestType.Get ) : Command
path string
type RequestType
return Command

Caches() public method

public Caches ( uint page ) : IEnumerable
page uint
return IEnumerable

Cmd() protected method

protected Cmd ( string path, RequestType requestType = RequestType.Get ) : Command
path string
requestType RequestType
return Command

Delete() public method

public Delete ( string cacheName, string key ) : bool
cacheName string
key string
return bool

Get() public method

public Get ( string cacheName, string key ) : string
cacheName string
key string
return string

Increment() public method

public Increment ( string cacheName, string key, int amount ) : int
cacheName string
key string
amount int
return int

IronCacheProvider() public method

public IronCacheProvider ( string token, string projectId, Provider provider = Provider.AWS ) : System
token string
projectId string
provider Provider
return System

Put() public method

public Put ( string cacheName, string key, int value, int expiresIn = 604800, bool replace = false, bool add = false ) : bool
cacheName string
key string
value int
expiresIn int
replace bool
add bool
return bool

Put() public method

public Put ( string cacheName, string key, string value, int expiresIn = 604800, bool replace = false, bool add = false ) : bool
cacheName string
key string
value string
expiresIn int
replace bool
add bool
return bool