当前位置:网站首页>[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 |
边栏推荐
- AI_ Drug: VAE of molecular generation model (I)
- 1.4 nn. Module neural network (II)
- 座机的表单验证
- Environment configuration stepping pit during colab use
- Simple code implementation of decision tree
- "The programming is not standardized, and my colleagues are in tears!"
- Rdkit I: using rdkit to screen the structural characteristics of chemical small molecules
- Spark dataframe replaces empty characters (or other values) in each column with null
- Overestimated test driven development?
- Asynchronous callback future mode of concurrent mode
猜你喜欢

(codeforce547) c-mike and foam

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

暴力递归到动态规划 01 (机器人移动)

Understanding of p-type problems, NP problems, NPC problems, and NP hard problems in natural computing

(newcoder 15079) irrelevant (inclusion exclusion principle)

Pp-yoloe details

Raft protocol - process demonstration

ROS - create workspace

Whole process record of yolov3 target detection

Flutter 启动白屏
随机推荐
(codeforce547)C-Mike and Foam(质因子+容斥原理)
Naive Bayes -- continuous data
Swing V2: towards a larger model with larger capacity and higher resolution
Why do programmers so "dislike" the trunk development mode?
Exness: dove resolution helped gold rebound, and the focus turned to U.S. GDP
1.5 nn. Module neural network (III)
RHCE's at, crontab's basic operations, the Chrony service, symmetric encryption and asymmetric encryption
How does DataGrid export and recover the entire database data, using a single SQL file
Precautions for using latex
Rdkit: introduce smiles code, smart code and Morgan fingerprint (ECFP)
Mathematical modeling -- analytic hierarchy process model
Machine learning [numpy]
Understanding of p-type problems, NP problems, NPC problems, and NP hard problems in natural computing
座机的表单验证
lodash库常用方法
The difference between /g /m /i of JS regular expressions
【redis系列】字符串数据结构
深入C语言(3)—— C的输入输出流
Idea configuration web container and war packaging
How fast does it take to implement a super simple programming language?