Package com.googlecode.hibernate.memcached

Examples of com.googlecode.hibernate.memcached.Memcache.shutdown()


        this.properties);
    XmemcachedClientFactory clientFactory = new XmemcachedClientFactory(
        propertiesHelper);
    Memcache cache = clientFactory.createMemcacheClient();
    testCache(cache);
    cache.shutdown();
  }

  private void testCache(Memcache cache) {
    cache.set("a", 0, 1);
    assertEquals(1, cache.get("a"));
View Full Code Here


        this.properties);
    SpyMemcacheClientFactory clientFactory = new SpyMemcacheClientFactory(
        propertiesHelper);
    Memcache cache = clientFactory.createMemcacheClient();
    testCache(cache);
    cache.shutdown();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.