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

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

本文整理了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

/**
 * (internal use) Add a raw operation to a numbered connection.
 * This method is exposed for testing.
 *
 * @param which server number
 * @param op the operation to perform
 * @return the Operation
 */
Operation addOp(final String key, final Operation op) {
  validateKey(key);
  checkState();
  conn.addOperation(key, op);
  return op;
}

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

/**
 * (internal use) Add a raw operation to a numbered connection.
 * This method is exposed for testing.
 *
 * @param which server number
 * @param op the operation to perform
 * @return the Operation
 */
Operation addOp(final String key, final Operation op) {
  validateKey(key);
  checkState();
  conn.addOperation(key, op);
  return op;
}

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

/**
 * (internal use) Add a raw operation to a numbered connection.
 * This method is exposed for testing.
 *
 * @param which server number
 * @param op    the operation to perform
 * @return the Operation
 */
protected Operation addOp(final String key, final Operation op) {
 validateKey(key);
 checkState();
 conn.addOperation(key, op);
 return op;
}

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

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

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

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

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

validateKey(key);

相关文章