Inheritance: IDisposable
Ejemplo n.º 1
0
 public static void Main(string[] args) {
     var ip = "127.0.0.1";
     var port = 11211;
     if(args.Length > 0 ) {
         ip = args[0];
     }
     if(args.Length > 1) {
         port = int.Parse(args[1]);
     }
     var endPoint = new IPEndPoint(IPAddress.Parse(ip), port);
     using(var server = new Memcached(endPoint)) {
         Console.WriteLine("press any key to exit");
         Console.ReadKey();
     }
 }
Ejemplo n.º 2
0
 public void Setup() {
     _endPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), new Random().Next(1000, 30000));
     _server = new Memcached(_endPoint);
     _log.Debug("created server");
 }