redis pipeline
可以一次性插入多个key的数据
@RequestMapping(value = "/add/pipeline", method = RequestMethod.GET)
public void addpipeline() {
stringRedisTemplate.executePipelined(new RedisCallback<String>() {
@Override
public String doInRedis(RedisConnection connection) throws DataAccessException {
for (int i = 0; i < 10; i++) {
connection.set(("pipel:" + i).getBytes(), "123".getBytes());
}