Package org.springframework.data.redis.connection

Examples of org.springframework.data.redis.connection.ReturnType


  public <T> T execute(final RedisScript<T> script, final RedisSerializer<?> argsSerializer,
      final RedisSerializer<T> resultSerializer, final List<K> keys, final Object... args) {
    return template.execute(new RedisCallback<T>() {
      public T doInRedis(RedisConnection connection) throws DataAccessException {
        final ReturnType returnType = ReturnType.fromJavaType(script.getResultType());
        final byte[][] keysAndArgs = keysAndArgs(argsSerializer, keys, args);
        final int keySize = keys != null ? keys.size() : 0;
        if (connection.isPipelined() || connection.isQueueing()) {
          // We could script load first and then do evalsha to ensure sha is present,
          // but this adds a sha1 to exec/closePipeline results. Instead, just eval
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.connection.ReturnType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.