How to Delete Records in Redis

Feature thumb course thumb

The DEL command can delete one to multiple key/value pairs, it also returns how many elements were deleted, as shown below:> SET first_name "Jordan"
OK> SET last_name "Hudgens"
OK> SET middle_name "David"
OK> DEL first_name last_name
(integer) 2> GET first_name
(nil)> GET last_name
(nil)> GET middle_name
"David"> DEL middle_name
(integer) 1