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

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

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

MemcachedClient.mutateWithDefault介绍

暂无

代码示例

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public long incr(String key, int by, long def) {
 return mutateWithDefault(Mutator.incr, key, (long)by, def, 0);
}

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

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public long decr(String key, int by, long def) {
  return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

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

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public long decr(String key, int by, long def) {
  return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public long decr(String key, long by, long def) {
 return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long decr(String key, int by, long def) {
 return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long incr(String key, long by, long def) {
 return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public long incr(String key, long by, long def) {
 return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: com.google.code.simple-spring-memcached/spymemcached

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public long decr(String key, int by, long def) {
 return mutateWithDefault(Mutator.decr, key, (long)by, def, 0);
}

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

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public long incr(String key, int by, long def) {
  return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long decr(String key, int by, long def) {
 return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

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

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public long incr(String key, int by, long def) {
  return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

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

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by  the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *                                   exceeded
 * @throws IllegalStateException     in the rare circumstance where queue
 *                                   is too full to accept any more requests
 */
public long incr(String key, int by, long def) {
 return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long incr(String key, long by, long def) {
 return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long incr(String key, int by, long def) {
 return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long incr(String key, int by, long def) {
 return mutateWithDefault(Mutator.incr, key, by, def, 0);
}

代码示例来源:origin: com.amazonaws/elasticache-java-cluster-client

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long decr(String key, long by, long def) {
 return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

代码示例来源:origin: net.spy/spymemcached

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public long decr(String key, long by, long def) {
 return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

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

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @param exp the expiration of this object
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public long decr(String key, int by, long def, int exp) {
  return mutateWithDefault(Mutator.decr, key, by, def, exp);
}

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

/**
 * Decrement the given counter, returning the new value.
 *
 * @param key the key
 * @param by  the amount to decrement
 * @param def the default value (if the counter does not exist)
 * @return the new value, or -1 if we were unable to decrement or add
 * @throws OperationTimeoutException if the global operation timeout is
 *                                   exceeded
 * @throws IllegalStateException     in the rare circumstance where queue
 *                                   is too full to accept any more requests
 */
public long decr(String key, int by, long def) {
 return mutateWithDefault(Mutator.decr, key, by, def, 0);
}

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

/**
 * Increment the given counter, returning the new value.
 *
 * @param key the key
 * @param by the amount to increment
 * @param def the default value (if the counter does not exist)
 * @param exp the expiration of this object
 * @return the new value, or -1 if we were unable to increment or add
 * @throws OperationTimeoutException if the global operation timeout is
 *           exceeded
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public long incr(String key, int by, long def, int exp) {
  return mutateWithDefault(Mutator.incr, key, by, def, exp);
}

相关文章