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

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

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

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

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

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

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

/**
 * Prepend to an existing value in the cache.
 *
 * <p>Note that the return will be false any time a mutation has not
 * occurred.</p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public <T> Future<Boolean> prepend(long cas, String key, T val,
    Transcoder<T> tc) {
  return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * <p>Note that the return will be false any time a mutation has not
 * occurred.</p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue
 *         is too full to accept any more requests
 */
public <T> Future<Boolean> append(long cas, String key, T val,
    Transcoder<T> tc) {
  return asyncCat(ConcatenationType.append, cas, key, val, tc);
}

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

/**
 * Prepend to an existing value in the cache.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> prepend(String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.prepend, 0, key, val, tc);
}

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

/**
 * Prepend to an existing value in the cache.
 *
 * <p>Note that the return will be false any time a mutation has not
 * occurred.</p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc  the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue
 *                               is too full to accept any more requests
 */
public <T> Future<Boolean> prepend(long cas, String key, T val,
                  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
}

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

/**
 * Prepend to an existing value in the cache.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> prepend(String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.prepend, 0, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * <p>Note that the return will be false any time a mutation has not
 * occurred.</p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc  the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue
 *                               is too full to accept any more requests
 */
public <T> Future<Boolean> append(long cas, String key, T val,
                 Transcoder<T> tc) {
 return asyncCat(ConcatenationType.append, cas, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public <T> OperationFuture<Boolean> append(long cas, String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.append, cas, key, val, tc);
}

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

/**
 * Prepend to an existing value in the cache.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
public <T> OperationFuture<Boolean> prepend(long cas, String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * If 0 is passed in as the CAS identifier, it will override the value
 * on the server without performing the CAS check.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> append(String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.append, 0, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * If 0 is passed in as the CAS identifier, it will override the value
 * on the server without performing the CAS check.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> append(String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.append, 0, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * If 0 is passed in as the CAS identifier, it will override the value
 * on the server without performing the CAS check.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> append(long cas, String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.append, cas, key, val, tc);
}

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

/**
 * Prepend to an existing value in the cache.
 *
 * If 0 is passed in as the CAS identifier, it will override the value
 * on the server without performing the CAS check.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> prepend(long cas, String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
}

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

/**
 * Append to an existing value in the cache.
 *
 * If 0 is passed in as the CAS identifier, it will override the value
 * on the server without performing the CAS check.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be appended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> append(long cas, String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.append, cas, key, val, tc);
}

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

/**
 * Prepend to an existing value in the cache.
 *
 * If 0 is passed in as the CAS identifier, it will override the value
 * on the server without performing the CAS check.
 *
 * <p>
 * Note that the return will be false any time a mutation has not occurred.
 * </p>
 *
 * @param <T>
 * @param cas cas identifier (ignored in the ascii protocol)
 * @param key the key to whose value will be prepended
 * @param val the value to append
 * @param tc the transcoder to serialize and unserialize the value
 * @return a future indicating success
 * @throws IllegalStateException in the rare circumstance where queue is too
 *           full to accept any more requests
 */
@Override
public <T> OperationFuture<Boolean> prepend(long cas, String key, T val,
  Transcoder<T> tc) {
 return asyncCat(ConcatenationType.prepend, cas, key, val, tc);
}

相关文章