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

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

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

MemcachedClient.mutate介绍

暂无

代码示例

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * @param key the key
  5. * @param by the amount to increment
  6. * @return the new value (-1 if the key doesn't exist)
  7. * @throws OperationTimeoutException if the global operation timeout is
  8. * exceeded
  9. * @throws IllegalStateException in the rare circumstance where queue
  10. * is too full to accept any more requests
  11. */
  12. public long incr(String key, int by) {
  13. return mutate(Mutator.incr, key, by, 0, -1);
  14. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * @param key the key
  5. * @param by the value
  6. * @return the new value (-1 if the key doesn't exist)
  7. * @throws OperationTimeoutException if the global operation timeout is
  8. * exceeded
  9. * @throws IllegalStateException in the rare circumstance where queue
  10. * is too full to accept any more requests
  11. */
  12. public long decr(String key, int by) {
  13. return mutate(Mutator.decr, key, by, 0, -1);
  14. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. public long decr(String key, int by) {
  17. return mutate(Mutator.decr, key, (long)by, 0, -1);
  18. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. public long decr(String key, long by) {
  17. return mutate(Mutator.decr, key, by, 0, -1);
  18. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long decr(String key, int by) {
  18. return mutate(Mutator.decr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long decr(String key, long by) {
  18. return mutate(Mutator.decr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long incr(String key, long by) {
  18. return mutate(Mutator.incr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long decr(String key, int by) {
  18. return mutate(Mutator.decr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. public long incr(String key, int by) {
  17. return mutate(Mutator.incr, key, (long)by, 0, -1);
  18. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented
  5. * and decremented items will be returned as Strings with any
  6. * operations that return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public long incr(String key, int by) {
  17. return mutate(Mutator.incr, key, by, 0, -1);
  18. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long incr(String key, long by) {
  18. return mutate(Mutator.incr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. public long incr(String key, long by) {
  17. return mutate(Mutator.incr, key, by, 0, -1);
  18. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented
  5. * and decremented items will be returned as Strings with any
  6. * operations that return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public long decr(String key, int by) {
  17. return mutate(Mutator.decr, key, by, 0, -1);
  18. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long decr(String key, long by) {
  18. return mutate(Mutator.decr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Decrement the given key by the given value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented
  5. * and decremented items will be returned as Strings with any
  6. * operations that return a value.
  7. *
  8. * @param key the key
  9. * @param by the value
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public long decr(String key, int by) {
  17. return mutate(Mutator.decr, key, by, -1, 0);
  18. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long incr(String key, int by) {
  18. return mutate(Mutator.incr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Increment the given counter, returning the new value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented
  5. * and decremented items will be returned as Strings with any
  6. * operations that return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @param def the default value (if the counter does not exist)
  11. * @param exp the expiration of this object
  12. * @return the new value, or -1 if we were unable to increment or add
  13. * @throws OperationTimeoutException if the global operation timeout is
  14. * exceeded
  15. * @throws IllegalStateException in the rare circumstance where queue
  16. * is too full to accept any more requests
  17. */
  18. public long incr(String key, int by, long def, int exp) {
  19. return mutate(Mutator.incr, key, by, def, exp);
  20. }

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

  1. /**
  2. * Decrement the given counter, returning the new value.
  3. *
  4. * Due to the way the memcached server operates on items, incremented
  5. * and decremented items will be returned as Strings with any
  6. * operations that return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to decrement
  10. * @param def the default value (if the counter does not exist)
  11. * @param exp the expiration of this object
  12. * @return the new value, or -1 if we were unable to decrement or add
  13. * @throws OperationTimeoutException if the global operation timeout is
  14. * exceeded
  15. * @throws IllegalStateException in the rare circumstance where queue
  16. * is too full to accept any more requests
  17. */
  18. public long decr(String key, int by, long def, int exp) {
  19. return mutate(Mutator.decr, key, by, def, exp);
  20. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented and
  5. * decremented items will be returned as Strings with any operations that
  6. * return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public long incr(String key, int by) {
  18. return mutate(Mutator.incr, key, by, 0, -1);
  19. }

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

  1. /**
  2. * Increment the given key by the given amount.
  3. *
  4. * Due to the way the memcached server operates on items, incremented
  5. * and decremented items will be returned as Strings with any
  6. * operations that return a value.
  7. *
  8. * @param key the key
  9. * @param by the amount to increment
  10. * @return the new value (-1 if the key doesn't exist)
  11. * @throws OperationTimeoutException if the global operation timeout is
  12. * exceeded
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public long incr(String key, int by) {
  17. return mutate(Mutator.incr, key, by, -1, 0);
  18. }

相关文章