Package net.rubyeye.xmemcached

Examples of net.rubyeye.xmemcached.KeyProvider


  private KeyProvider keyProvider;
 
  @Override
  public void setUp() throws Exception {
    super.setUp();
    keyProvider = new KeyProvider() {
     
      public String process(String key) {
        // 现实中是基于某种规则进行字符串转换, 为了简单, 我直接用hashCode
        return String.valueOf(key.hashCode());
      }
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.KeyProvider

Copyright © 2018 www.massapicom. 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.