public static void RedisIncrement() { using (IRedisNativeClient nrc = new RedisNativeClient()) { nrc.Del("Increment"); for (int i = 0; i < iterations; i++) { nrc.Incr("Increment"); } } }
//------------------------------------------------------------------ // INTEGER public long Incr(string key) { RedisNativeClient client = this.pool.GetRedisClient(key); return((client == null) ? 0L : client.Incr(key)); }