// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using DBCache.Util; namespace DBCache.Increment { public class Program : Utility { private static void Increment() { for(int i = 0; i < counters.Count; i++) { dals[i].IncrementCounter(counters[i]); } } public static void Main(string[] args) { StackExchange.Redis.ConnectionMultiplexer con = StackExchange.Redis.ConnectionMultiplexer.Connect("localhost:6379"); NHibernate.Caches.Redis.RedisCacheProvider.SetConnectionMultiplexer(con); AddAll(); Increment(); CloseAll(); } } }