redisredisString//HashListSetsorted set
Controller:@Resource RedisTemplate
redisTemplate.opsForHash();//hash
redisTemplate.opsForList();//list
redisTemplate.opsForSet();//set
redisTemplate.opsForZSet();//setString:1.redisTemplate.opsForValue().set(key,value));
2.redisTemplate.opsForValue().get(key));
3.redisTemplate.opsForValue().get(key, start, end);
4.redisTemplate.opsForValue().getAndSet(key, value);
5.redisTemplate.opsForValue().getBit(key, offset);//
6.redisTemplate.opsForValue().multiGet(keys);
7.redisTemplate.opsForValue().setBit(key, offset, value);//
8.redisTemplate.opsForValue().set(K key, V value, long timeout, TimeUnit unit);//TimeUnittimeout,
9.redisTemplate.opsForValue().setIfAbsent(key, value);
10.redisTemplate.opsForValue().set(K key, V value, long offset);//java
11.redisTemplate.opsForValue().size(key));
12.redisTemplate.opsForValue().multiGet(Collection
13.redisTemplate.opsForValue().multiSetIfAbsent(Map extends K, ? extends V> m);
14.8
1516171819.redisTemplate.opsForValue().increment(K key, long delta);.increment(K key, double delta);
20.redisTemplate.opsForValue().append(key, value);//keyvalue
,:21.del key——21.redisTemplate.opsForValue().getOperations().delete(key);
.getBit(key, offset):asciioffset.
@asciiHash:
1.redisTemplate.opsForHash().delete(H key, Object… hashKeys);//…mapkey
2.redisTemplate.opsForHash().hasKey(key, hashKey)
3.redisTemplate.opsForHash().get(key, hashKey)
4.redisTemplate.opsForHash().entries(key);//map
56.redisTemplate.opsForHash().increment(H key, HK hashKey, long delta);//increment(H key, HK hashKey, double delta);
7.redisTemplate.opsForHash().keys(key)//mapkeySet
8.redisTemplate.opsForHash().size(key)
9.redisTemplate.opsForHash().multiGet(H key, Collection
10.redisTemplate.opsForHash().putAll(H key, Map extends HK, ? extends HV> m)
11.redisTemplate.opsForHash().put(key, hashKey, value);
12.redisTemplate.opsForHash().putIfAbsent(key, hashKey, value)
13.redisTemplate.opsForHash().values(key);//mapvalueList
redisTemplate.opsForList().leftPush(key, value);//
redisTemplate.opsForList().leftPop(key);//
redisTemplate.opsForList().size(key);///
redisTemplate.opsForList().range(key, start, end);//,List
redisTemplate.opsForList().remove(key, i, value);//keyvaluei,0
redisTemplate.opsForList().index(key, index);//
redisTemplate.opsForList().set(key, index, value);//
redisTemplate.opsForList().trim(key, start, end);//,void,[start,end]
redisTemplate.opsForList().rightPopAndLeftPush(String sourceKey, String destinationKey);//keykey
:Serializable, Spring Redis,nested exception is java.lang.IllegalArgumentException: Def免费云主机域名aultSerializer requires a Serializable///Set
redisTemplate.opsForValue().getAndSet(key, value)
redis
相关推荐: 从Oracle用goldengate抽取数据到kafka
Goldengate到kafka配置详解 环境介绍: 源端数据库版本 源端OGG版本 目标端OGG版本 Kafka集群 目标端数据库GP 11.2.0.3 12.2.0.1.1 ggs_Adapters_Linux_x64 切记OGG版本是for big da…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。