api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayClient.java
public Long linsert(final String key, final LIST_POSITION where, final String pivot, final String value) {
        return this.execute(new RedisClusterCallback<Long>() {
            public Long doInRedisCluster(RedisCluster redisCluster) {
                return redisCluster.linsert(key, where, pivot, value);
            }

            public int getPartitionNumber() {
                return GatewayPartitionNumber.get(key);
            }

            public AffinityState getState() {
                return AffinityState.WRITE;
            }
        });
    }
public Long linsert(final String key, final LIST_POSITION where, final String pivot, final String value) {
        return this.execute(new RedisClusterCallback<Long>() {
            public Long doInRedisCluster(RedisCluster redisCluster) {
                return redisCluster.linsert(key, where, pivot, value);
            }

            public int getPartitionNumber() {
                return GatewayPartitionNumber.get(key);
            }

            public AffinityState getState() {
                return AffinityState.WRITE;
            }
        });
    }
/*
@see RedisClusterCommands#linsert(java.lang.String, redis.clients.jedis.BinaryClient.LIST_POSITION, java.lang.String, java.lang.String)