当前位置:网站首页>[redis series] string data structure
[redis series] string data structure
2022-07-29 03:40:00 【CoderOu】
redis Common commands for string operations
| redis Native command | spring Packaged redisTemplate | notes |
|---|---|---|
| Use string data structures | redisTemplate.opsForValue() | Use redis The string data structure of |
| SET key value | redisTemplate.opsForValue().set(K key, V value) | Store a single string key value pair |
| MSET key value [key value …] | redisTemplate.opsForValue().multiSet(Map<? extends K, ? extends V> map) | Mass store string key value pairs |
| SETNX key value | redisTemplate.opsForValue().setIfAbsent(K key, V value) | Save a non-existent key value pair , If there is , Cannot be deposited |
| GET key | redisTemplate.opsForValue().get(Object key) | Get a string key value |
| MGET key [key…] | redisTemplate.opsForValue().multiGet(Collection keys) | Get string key value in batch |
| DEL key [key…] | redisTemplate.delete(Collection keys) | Delete one or more key values |
| EXPIRE key seconds | redisTemplate.expire() | Set the expiration time of a key |
| INCR key[ atom ] | redisTemplate.opsForValue().increment(Object key) | take key Values stored in +1 |
| DECR key[ atom ] | redisTemplate.opsForValue().decrement(Object key) | take key Values stored in -1 |
| INCRBY key increment[ atom ] | redisTemplate.opsForValue().increment(Object key, long delta) | take key Values stored in +increment |
| DECRBY key decrement[ atom ] | redisTemplate.opsForValue().decrement(Object key, long delta) | take key Values stored in -decrement |
边栏推荐
- Cloudera manager platform fault repair record
- How do programmers use code to completely end those things in the system?
- How to realize shortcut keys for interface scaling by vscade
- Rongyun IM & RTC capabilities on new sites
- Excel splicing database statement
- Process tracking of ribbon principle
- Violence recursion to dynamic programming 01 (robot movement)
- Simple code implementation of K-means clustering
- 力扣每日一题-第44天-205. 同构字符串
- 再学EXKMP(EXKMP模板)
猜你喜欢

RHCE的at,crontab的基本操作,chrony服务和对称加密和非对称加密

Rdkit: introduce smiles code, smart code and Morgan fingerprint (ECFP)

实例搭建Flask服务(简易版)
![Machine learning [numpy]](/img/6b/3e7f08c5d379ce35687e4f14545929.png)
Machine learning [numpy]

Why BGP server is used in sunflower remote control? Automatic optimal route and high-speed transmission across operators

(2022 Hangdian multi school III) 1002 boss rush (pressure dp+ dichotomy)

Practical application cases of digital Twins - smart energy

AI platform, AI midrange architecture

Exness: dove resolution helped gold rebound, and the focus turned to U.S. GDP
![MOS管 —— 快速复苏应用笔记(贰)[参数与应用]](/img/54/eb040a51304192def8cfb360c7c213.png)
MOS管 —— 快速复苏应用笔记(贰)[参数与应用]
随机推荐
Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding
for_ Example of each usage
Configure vscade to realize ROS writing
Division of data link layer, protocols used in data link layer and detailed introduction
1.6 example: cifar-10 classification
KNN method predicts pregnancy, KNN principle simple code
Target detection, industrial defects, image segmentation -- deep learning data set induction
Introduction to static routing and dynamic routing protocols OSPF and rip and static routing configuration commands
Whole process record of yolov3 target detection
安装抓包证书
Producer consumer model of concurrent model
3.1 common neural network layer (I) image correlation layer
Easy to use remote sensing data set download website~~~
深入C语言(3)—— C的输入输出流
@Configuration (proxybeanmethods = false) what's the use of setting this to false
Introduction to JVM foundation I (memory structure)
Simple use of eventbus
Precautions for using latex
Casbin入门
(codeforce547)C-Mike and Foam(质因子+容斥原理)