C# Class BB.Caching.Redis.Statistics

Statistics class to track basic statistics across multiple servers using redis.
Exibir arquivo Open project: JesseBuesking/BB.Caching

Private Properties

Property Type Description

Public Methods

Method Description
GetStatistics ( string key ) : Stats

Gets the statistics being tracked at key.

GetStatisticsAsync ( string key ) : Task

Gets the statistics being tracked at key.

ScriptLoad ( ) : void

Loads the underlying Lua script(s) onto all necessary servers.

SetStatistic ( string key, double value ) : void

Sets the value at the key for a statistic we're tracking.

SetStatisticAsync ( string key, double value ) : System.Threading.Tasks.Task

Sets the value at the key for a statistic we're tracking.

Method Details

GetStatistics() public static method

Gets the statistics being tracked at key.
public static GetStatistics ( string key ) : Stats
key string /// The key. ///
return Stats

GetStatisticsAsync() public static method

Gets the statistics being tracked at key.
public static GetStatisticsAsync ( string key ) : Task
key string /// The key. ///
return Task

ScriptLoad() public static method

Loads the underlying Lua script(s) onto all necessary servers.
public static ScriptLoad ( ) : void
return void

SetStatistic() public static method

Sets the value at the key for a statistic we're tracking.
public static SetStatistic ( string key, double value ) : void
key string /// The key. ///
value double /// The value. ///
return void

SetStatisticAsync() public static method

Sets the value at the key for a statistic we're tracking.
public static SetStatisticAsync ( string key, double value ) : System.Threading.Tasks.Task
key string /// The key. ///
value double /// The value. ///
return System.Threading.Tasks.Task