List of usage examples for org.springframework.data.redis.connection RedisConnection bitOp
@Nullable Long bitOp(BitOperation op, byte[] destination, byte[]... keys);
From source file:com.zxy.commons.cache.RedisUtils.java
/** * Perform bitwise operations between strings. * <p>//from w w w.j a va 2 s.co m * See http://redis.io/commands/bitop * * @param op op * @param destination destination * @param keys keys * @return Long */ public static Long bitOp(BitOperation op, byte[] destination, byte[]... keys) { return redisTemplate.execute(new RedisCallback<Long>() { @Override public Long doInRedis(RedisConnection redis) throws DataAccessException { return redis.bitOp(op, destination, keys); } }); }
From source file:com.zxy.commons.cache.RedisHelper.java
/** * Perform bitwise operations between strings. * <p>//from w w w .j a v a 2 s. c om * See http://redis.io/commands/bitop * * @param op op * @param destination destination * @param keys keys * @return Long */ public Long bitOp(BitOperation op, byte[] destination, byte[]... keys) { return redisTemplate.execute(new RedisCallback<Long>() { @Override public Long doInRedis(RedisConnection redis) throws DataAccessException { return redis.bitOp(op, destination, keys); } }); }