Skip to content

Instantly share code, notes, and snippets.

View AmazingTurtle's full-sized avatar
🐢
turtle on SPEED

Felix AmazingTurtle

🐢
turtle on SPEED
View GitHub Profile
@AmazingTurtle
AmazingTurtle / ThrottlePlugin.cs
Created October 1, 2016 13:51 — forked from coryt/ThrottlePlugin.cs
ServiceStack plugin to throttle api requests
public class ThrottlePlugin : IPlugin
{
/// <param name="redisHost">host name</param>
/// <param name="redisPort">port</param>
/// <param name="redisPassword">password</param>
public ThrottlePlugin(string redisHost, int redisPort, string redisPassword = null)
{
_redisClient = new RedisClient(redisHost, redisPort, redisPassword);
}