public static void main(String[] args) {
Jedis jedis = new Jedis("127.0.0.1");
jedis.setnx("operation_log_2020_1_01","");
for (int i = 0; i < 10; i++) {
jedis.append("operation_log_2020_1_01","今天的第"+(i+1)+"条"+"操作日志 ");
}
String log = jedis.get("operation_log_2020_1_01");
System.out.println("今天所有的操作日志"+log);
}