-
StringRedisTemplate常用操作
- stringRedisTemplate.opsForValue().set("test", "100",60*10,TimeUnit.SECONDS);
- stringRedisTemplate.boundValueOps("test").increment(-1);
- stringRedisTemplate.opsForValue().get("test")
- stringRedisTemplate.boundValueOps("test").increment(1);
- stringRedisTemplate.getExpire("test")
- stringRedisTemplate.getExpire("test",TimeUnit.SECONDS)
- stringRedisTemplate.delete("test");
- stringRedisTemplate.hasKey("546545");
- stringRedisTemplate.opsForSet().add("red_123", "1","2","3");
- stringRedisTemplate.expire("red_123",1000 , TimeUnit.MILLISECONDS);
- stringRedisTemplate.opsForSet().isMember("red_123", "1")
- stringRedisTemplate.opsForSet().members("red_123");
-
相关阅读:
终于学会用WinCVS来开源了
从网上收集EMail(正则表达式,C#源码)
元宝NewBar发布1.2.0测试版
使用Gimp切图
shell编程笔记
poj2485
poj 3630 字典树
杭电oj题目和分类
强连通分量Kosaraju算法
随机数的产生
-
原文地址:https://www.cnblogs.com/wyx1202/p/7700459.html
Copyright © 2020-2023
润新知