Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            ITelemetryLogger logger = new ConsoleLogger();
            IConcurrentCache <string, string> cache = new ConcurrentLRUCache <string, string>(capacity: 2048);

            IRequestProcessor processor = new RequestProcessor(cache);

            CacheServer server = new CacheServer(processor, logger);

            server.Start(ipAddress: IPAddress.Loopback, port: 11211);
        }
Exemplo n.º 2
0
 public void TestSetup()
 {
     _cache = new ConcurrentLRUCache <string, string>(capacity: 5);
 }