net.spy.memcached.MemcachedClient.validateKey()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(159)

本文整理了Java中net.spy.memcached.MemcachedClient.validateKey()方法的一些代码示例,展示了MemcachedClient.validateKey()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MemcachedClient.validateKey()方法的具体详情如下:
包路径:net.spy.memcached.MemcachedClient
类名称:MemcachedClient
方法名:validateKey

MemcachedClient.validateKey介绍

暂无

代码示例

代码示例来源:origin: com.google.code.maven-play-plugin.spy/spymemcached

  1. /**
  2. * (internal use) Add a raw operation to a numbered connection.
  3. * This method is exposed for testing.
  4. *
  5. * @param which server number
  6. * @param op the operation to perform
  7. * @return the Operation
  8. */
  9. Operation addOp(final String key, final Operation op) {
  10. validateKey(key);
  11. checkState();
  12. conn.addOperation(key, op);
  13. return op;
  14. }

代码示例来源:origin: com.google.code.maven-play-plugin.spy/memcached

  1. /**
  2. * (internal use) Add a raw operation to a numbered connection.
  3. * This method is exposed for testing.
  4. *
  5. * @param which server number
  6. * @param op the operation to perform
  7. * @return the Operation
  8. */
  9. Operation addOp(final String key, final Operation op) {
  10. validateKey(key);
  11. checkState();
  12. conn.addOperation(key, op);
  13. return op;
  14. }

代码示例来源:origin: naver/arcus-java-client

  1. /**
  2. * (internal use) Add a raw operation to a numbered connection.
  3. * This method is exposed for testing.
  4. *
  5. * @param which server number
  6. * @param op the operation to perform
  7. * @return the Operation
  8. */
  9. protected Operation addOp(final String key, final Operation op) {
  10. validateKey(key);
  11. checkState();
  12. conn.addOperation(key, op);
  13. return op;
  14. }

代码示例来源:origin: com.google.code.maven-play-plugin.spy/spymemcached

  1. String key=key_iter.next();
  2. tc_map.put(key, tc_iter.next());
  3. validateKey(key);
  4. final MemcachedNode primaryNode=locator.getPrimary(key);
  5. MemcachedNode node=null;

代码示例来源:origin: com.google.code.maven-play-plugin.spy/memcached

  1. final NodeLocator locator=conn.getLocator();
  2. for(String key : keys) {
  3. validateKey(key);
  4. final MemcachedNode primaryNode=locator.getPrimary(key);
  5. MemcachedNode node=null;

代码示例来源:origin: naver/arcus-java-client

  1. validateKey(key);

相关文章