We are creating an app for a bookstore. Now, we are implementing Redis in our app:
import redis
r = redis.Redis()
The number of books in stock is stored by the books_number key. Write a code that will return the number of books.
We are creating an app for a bookstore. Now, we are implementing Redis in our app:
import redis
r = redis.Redis()
The number of books in stock is stored by the books_number key. Write a code that will return the number of books.
Create a free account to access the full topic