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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章