EXISTS Command
Video Player is loading.
Loaded: 0%
Current Time 0:00
/
Duration -:-
- , opens subtitles settings dialogsubtitles settings
- subtitles off
- , selectedEnglish Captions
1x
- 2x
- 1.5x
- , selected1x
- 0.5x
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
EXISTS Command
If you simply need to check whether a key exists in Redis without retrieving its value, you can use the EXISTS
command.
Example Usage
If you provide a single key, the result will be 1
if the key exists, or 0
if it does not.
In this case, the result will be 1
since the key mykey
exists.
When multiple keys are specified, the command will return the number of keys that exist in Redis. If we also have keys key1
and key3
in the database, this query will return 2
, since only key1
and key3
exist in the database.
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 3
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.