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

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

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

MemcachedClient.asyncCat介绍

暂无

代码示例

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * @param cas cas identifier (ignored in the ascii protocol)
  5. * @param key the key to whose value will be prepended
  6. * @param val the value to append
  7. * @param tc the transcoder to serialize and unserialize the value
  8. * @return a future indicating success
  9. * @throws IllegalStateException in the rare circumstance where queue
  10. * is too full to accept any more requests
  11. */
  12. public <T> Future<Boolean> prepend(long cas, String key, T val,
  13. Transcoder<T> tc) {
  14. return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
  15. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * @param cas cas identifier (ignored in the ascii protocol)
  5. * @param key the key to whose value will be appended
  6. * @param val the value to append
  7. * @param tc the transcoder to serialize and unserialize the value
  8. * @return a future indicating success
  9. * @throws IllegalStateException in the rare circumstance where queue
  10. * is too full to accept any more requests
  11. */
  12. public <T> Future<Boolean> append(long cas, String key, T val,
  13. Transcoder<T> tc) {
  14. return asyncCat(ConcatenationType.append, cas, key, val, tc);
  15. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * <p>Note that the return will be false any time a mutation has not
  5. * occurred.</p>
  6. *
  7. * @param <T>
  8. * @param cas cas identifier (ignored in the ascii protocol)
  9. * @param key the key to whose value will be prepended
  10. * @param val the value to append
  11. * @param tc the transcoder to serialize and unserialize the value
  12. * @return a future indicating success
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public <T> Future<Boolean> prepend(long cas, String key, T val,
  17. Transcoder<T> tc) {
  18. return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
  19. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * <p>Note that the return will be false any time a mutation has not
  5. * occurred.</p>
  6. *
  7. * @param <T>
  8. * @param cas cas identifier (ignored in the ascii protocol)
  9. * @param key the key to whose value will be appended
  10. * @param val the value to append
  11. * @param tc the transcoder to serialize and unserialize the value
  12. * @return a future indicating success
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public <T> Future<Boolean> append(long cas, String key, T val,
  17. Transcoder<T> tc) {
  18. return asyncCat(ConcatenationType.append, cas, key, val, tc);
  19. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * <p>
  5. * Note that the return will be false any time a mutation has not occurred.
  6. * </p>
  7. *
  8. * @param <T>
  9. * @param key the key to whose value will be prepended
  10. * @param val the value to append
  11. * @param tc the transcoder to serialize and unserialize the value
  12. * @return a future indicating success
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public <T> OperationFuture<Boolean> prepend(String key, T val,
  18. Transcoder<T> tc) {
  19. return asyncCat(ConcatenationType.prepend, 0, key, val, tc);
  20. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * <p>Note that the return will be false any time a mutation has not
  5. * occurred.</p>
  6. *
  7. * @param <T>
  8. * @param cas cas identifier (ignored in the ascii protocol)
  9. * @param key the key to whose value will be prepended
  10. * @param val the value to append
  11. * @param tc the transcoder to serialize and unserialize the value
  12. * @return a future indicating success
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public <T> Future<Boolean> prepend(long cas, String key, T val,
  17. Transcoder<T> tc) {
  18. return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
  19. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * <p>
  5. * Note that the return will be false any time a mutation has not occurred.
  6. * </p>
  7. *
  8. * @param <T>
  9. * @param key the key to whose value will be prepended
  10. * @param val the value to append
  11. * @param tc the transcoder to serialize and unserialize the value
  12. * @return a future indicating success
  13. * @throws IllegalStateException in the rare circumstance where queue is too
  14. * full to accept any more requests
  15. */
  16. @Override
  17. public <T> OperationFuture<Boolean> prepend(String key, T val,
  18. Transcoder<T> tc) {
  19. return asyncCat(ConcatenationType.prepend, 0, key, val, tc);
  20. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * <p>Note that the return will be false any time a mutation has not
  5. * occurred.</p>
  6. *
  7. * @param <T>
  8. * @param cas cas identifier (ignored in the ascii protocol)
  9. * @param key the key to whose value will be appended
  10. * @param val the value to append
  11. * @param tc the transcoder to serialize and unserialize the value
  12. * @return a future indicating success
  13. * @throws IllegalStateException in the rare circumstance where queue
  14. * is too full to accept any more requests
  15. */
  16. public <T> Future<Boolean> append(long cas, String key, T val,
  17. Transcoder<T> tc) {
  18. return asyncCat(ConcatenationType.append, cas, key, val, tc);
  19. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * <p>
  5. * Note that the return will be false any time a mutation has not occurred.
  6. * </p>
  7. *
  8. * @param <T>
  9. * @param cas cas identifier (ignored in the ascii protocol)
  10. * @param key the key to whose value will be appended
  11. * @param val the value to append
  12. * @param tc the transcoder to serialize and unserialize the value
  13. * @return a future indicating success
  14. * @throws IllegalStateException in the rare circumstance where queue is too
  15. * full to accept any more requests
  16. */
  17. public <T> OperationFuture<Boolean> append(long cas, String key, T val,
  18. Transcoder<T> tc) {
  19. return asyncCat(ConcatenationType.append, cas, key, val, tc);
  20. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * <p>
  5. * Note that the return will be false any time a mutation has not occurred.
  6. * </p>
  7. *
  8. * @param <T>
  9. * @param cas cas identifier (ignored in the ascii protocol)
  10. * @param key the key to whose value will be prepended
  11. * @param val the value to append
  12. * @param tc the transcoder to serialize and unserialize the value
  13. * @return a future indicating success
  14. * @throws IllegalStateException in the rare circumstance where queue is too
  15. * full to accept any more requests
  16. */
  17. public <T> OperationFuture<Boolean> prepend(long cas, String key, T val,
  18. Transcoder<T> tc) {
  19. return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
  20. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * If 0 is passed in as the CAS identifier, it will override the value
  5. * on the server without performing the CAS check.
  6. *
  7. * <p>
  8. * Note that the return will be false any time a mutation has not occurred.
  9. * </p>
  10. *
  11. * @param <T>
  12. * @param key the key to whose value will be appended
  13. * @param val the value to append
  14. * @param tc the transcoder to serialize and unserialize the value
  15. * @return a future indicating success
  16. * @throws IllegalStateException in the rare circumstance where queue is too
  17. * full to accept any more requests
  18. */
  19. @Override
  20. public <T> OperationFuture<Boolean> append(String key, T val,
  21. Transcoder<T> tc) {
  22. return asyncCat(ConcatenationType.append, 0, key, val, tc);
  23. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * If 0 is passed in as the CAS identifier, it will override the value
  5. * on the server without performing the CAS check.
  6. *
  7. * <p>
  8. * Note that the return will be false any time a mutation has not occurred.
  9. * </p>
  10. *
  11. * @param <T>
  12. * @param key the key to whose value will be appended
  13. * @param val the value to append
  14. * @param tc the transcoder to serialize and unserialize the value
  15. * @return a future indicating success
  16. * @throws IllegalStateException in the rare circumstance where queue is too
  17. * full to accept any more requests
  18. */
  19. @Override
  20. public <T> OperationFuture<Boolean> append(String key, T val,
  21. Transcoder<T> tc) {
  22. return asyncCat(ConcatenationType.append, 0, key, val, tc);
  23. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * If 0 is passed in as the CAS identifier, it will override the value
  5. * on the server without performing the CAS check.
  6. *
  7. * <p>
  8. * Note that the return will be false any time a mutation has not occurred.
  9. * </p>
  10. *
  11. * @param <T>
  12. * @param cas cas identifier (ignored in the ascii protocol)
  13. * @param key the key to whose value will be appended
  14. * @param val the value to append
  15. * @param tc the transcoder to serialize and unserialize the value
  16. * @return a future indicating success
  17. * @throws IllegalStateException in the rare circumstance where queue is too
  18. * full to accept any more requests
  19. */
  20. @Override
  21. public <T> OperationFuture<Boolean> append(long cas, String key, T val,
  22. Transcoder<T> tc) {
  23. return asyncCat(ConcatenationType.append, cas, key, val, tc);
  24. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * If 0 is passed in as the CAS identifier, it will override the value
  5. * on the server without performing the CAS check.
  6. *
  7. * <p>
  8. * Note that the return will be false any time a mutation has not occurred.
  9. * </p>
  10. *
  11. * @param <T>
  12. * @param cas cas identifier (ignored in the ascii protocol)
  13. * @param key the key to whose value will be prepended
  14. * @param val the value to append
  15. * @param tc the transcoder to serialize and unserialize the value
  16. * @return a future indicating success
  17. * @throws IllegalStateException in the rare circumstance where queue is too
  18. * full to accept any more requests
  19. */
  20. @Override
  21. public <T> OperationFuture<Boolean> prepend(long cas, String key, T val,
  22. Transcoder<T> tc) {
  23. return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
  24. }

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

  1. /**
  2. * Append to an existing value in the cache.
  3. *
  4. * If 0 is passed in as the CAS identifier, it will override the value
  5. * on the server without performing the CAS check.
  6. *
  7. * <p>
  8. * Note that the return will be false any time a mutation has not occurred.
  9. * </p>
  10. *
  11. * @param <T>
  12. * @param cas cas identifier (ignored in the ascii protocol)
  13. * @param key the key to whose value will be appended
  14. * @param val the value to append
  15. * @param tc the transcoder to serialize and unserialize the value
  16. * @return a future indicating success
  17. * @throws IllegalStateException in the rare circumstance where queue is too
  18. * full to accept any more requests
  19. */
  20. @Override
  21. public <T> OperationFuture<Boolean> append(long cas, String key, T val,
  22. Transcoder<T> tc) {
  23. return asyncCat(ConcatenationType.append, cas, key, val, tc);
  24. }

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

  1. /**
  2. * Prepend to an existing value in the cache.
  3. *
  4. * If 0 is passed in as the CAS identifier, it will override the value
  5. * on the server without performing the CAS check.
  6. *
  7. * <p>
  8. * Note that the return will be false any time a mutation has not occurred.
  9. * </p>
  10. *
  11. * @param <T>
  12. * @param cas cas identifier (ignored in the ascii protocol)
  13. * @param key the key to whose value will be prepended
  14. * @param val the value to append
  15. * @param tc the transcoder to serialize and unserialize the value
  16. * @return a future indicating success
  17. * @throws IllegalStateException in the rare circumstance where queue is too
  18. * full to accept any more requests
  19. */
  20. @Override
  21. public <T> OperationFuture<Boolean> prepend(long cas, String key, T val,
  22. Transcoder<T> tc) {
  23. return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
  24. }

相关文章