JSON with Redis in memory Database – Using redis ReJSON module



JSON with Redis in memory Database – Using redis ReJSON module

JSON with Redis in memory Database - Using redis ReJSON module

Redis is one of the well known and widely used in memory database. Redis is basically a key value data store and support multiple data types include string, list, hashes, set and sortedset. However, the support of JSON was missing in the redis database. Though we could store JSON as a redis string, it defeats the purpose of using json at the first place.

Now with the availability of rejson module, this limitation is no longer applicable. with Redis json module, redis now has a full fledged support of JSON data type in redis. To be able to use redis json module, you need to start the redis server by including the rejson module. Without rejson module the redis json support will not be there.

In this video, I’m using python redis to explain how to use JSON datatype of redis in memory key value data store. I’ve explained the usage of JSON.set and JSON.get as well as JSON.del to create, get and delete the JSON data type.

I’ve also explained in this video that how you can use get to extract part of the json so that we don’t fetch the complete json every time we need a part of data.

Hope this video will help you in expediting your learning journey. Here are the contents of this video

Timecodes:
0:00 – Introduction to In Memory Database and Redis Database
0:27 – Redis supports JSON data type with rejson module
1:22 – Based data types of redis
1:56 – Redis with Rejson module as rejson.so
2:20 – Redis JSON commands we will see in this video
2:33 – Why I am using Python redis
3:03 – same JSON commands will work in redis cli also
3:32 – Redis Key value store with String data type
4:44 – Using Redis Json with python redis execute commands
5:15 – Creating a JSON data type using JSON set command in redis
6:04 – Extracting JSON elements using JSON get commands in redis
6:40 – Extracting Selective JSON fields using rejson get command
7:34 – Using Nested JSON with rejson – The redis json data type
8:04 – redis commands are case insensitive
8:14 – Extracting nested fields in JSON from Redis json database
9:06 – Deleting the JSON in redis

#redis #database #json #nosql #inmemorydatabase #cache #keyvalue #cachestore #keyvaluestore

About Me i.e. An Insightful Techie

Greetings and Thanks a lot for checking out my YouTube Channel. I’m Deepak K Gupta (Daksh). This channel is a medium for me to share my learnings and journey as a Techie so that you not only learn from my experience but also from my mistakes

As a techie I am closely associated with software development, so most of my content will revolve around Programming Languages, AI, Machine learning and Databases. I share things which will help you learn, remember and use these things in an effective and efficient way.

As a Techie, I also know that there is a life beyond software development and it has a profound impact on our career as well as on our well being. I also share those learnings which I feel are worth sharing with the intention that it MAY help you in taking better decisions in your life.

Last but not the least, I’m a traveler and explorer by nature. I would like to take you with me on some of the interesting journeys around the world. Believe me there is more to learn outdoors than indoors

Hope you’ll like my contents and will be part of my journey 🙏

# SUBSCRIBE – https://www.youtube.com/AnInsightfulTechie?sub_confirmation=1
# INSTAGRAM – https://www.intagram.com/AnInsightfulTechie
# Twitter – https://www.twitter.com/AWiseTechie
# Facebook – https://www.facebook.com/AnInsightfulTechie

Comments are closed.