Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre GET Command | Les Commandes Redis Essentielles
Introduction à Redis

GET Command

Glissez pour afficher le menu

GET Command

After storing a value in a key, it makes sense that we would want to retrieve it, and that's exactly what the GET command allows us to do.

GET [key]

Inside the [key] placeholder, you should provide the name of the key, which will return the value stored under it.

Example Usage

We already have a key called mykey, with the value Hello, Redis! stored under it. Let's retrieve the value using the key.

GET mykey

The console will return the string Hello, Redis!, which is stored under that key.

Note
Note

If the key does not exist, it will simply return nil.

1. What does the GET command do in Redis?

2. What happens if the specified key does not exist when using the GET command?

question mark

What does the GET command do in Redis?

Sélectionnez la réponse correcte

question mark

What happens if the specified key does not exist when using the GET command?

Sélectionnez la réponse correcte

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

GET Command

GET Command

After storing a value in a key, it makes sense that we would want to retrieve it, and that's exactly what the GET command allows us to do.

GET [key]

Inside the [key] placeholder, you should provide the name of the key, which will return the value stored under it.

Example Usage

We already have a key called mykey, with the value Hello, Redis! stored under it. Let's retrieve the value using the key.

GET mykey

The console will return the string Hello, Redis!, which is stored under that key.

Note
Note

If the key does not exist, it will simply return nil.

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
some-alt