Redis Keys: DEL
DEL Keys
The Redis DEL command is used to remove the specified keys. A key is ignored if it does not exist.
Syntax:
COMMAND KEY_NAME
Available since
1.0.0.
Return Value
Integer Reply: Number of keys that were removed.
Return Value Type
Integer
Example: Redis DEL
First, create a key in redis and set some value in it. and then delete the created keys.
127.0.0.1:6379> SET key "Good" OK 127.0.0.1:6379> SET key1 "Morning" OK 127.0.0.1:6379> DEL key key1 key2 (integer) 2
Previous:
Redis Data Types
Next:
DUMP
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework