Redis JSON
Redis Stack extends the core features of Redis OSS and provides a complete developer experience for debugging and more.
RedisJSON
RedisGraph
RedisTimeseries
RedisSearch
The JSON capability of Redis Stack provides JavaScript Object Notation (JSON) support for Redis. It lets you store, update, and retrieve JSON values in a Redis database, similar to any other Redis data type.
JSON.SET friends:character:rachel $ '{"name": "Rachel Green", "occupation": "Fashion Executive", "relationship_status": "Single", "friends": ["Ross Geller", "Monica Geller", "Joey Tribbiani", "Chandler Bing", "Phoebe Buffay"] }'
Dollar sign ($) represents the Root node
JSON.GET friends:character:rachelRetrieve Specific fields
JSON.GET friends:character:rachel $.name $.occupationAdds education at the end
JSON.SET friends:character:rachel $.education '
{"high_school": "Lincoln High School", "college": "Not specified" }'JSON.GET friends:character:rachelAdding Array of values
JSON.SET friends:character:rachel $.employment_history '[ { "company": "Central Perk", "position": "Waitress", "years": "1994-1995" }, { "company": "Bloomingdale\'s", "position": "Assistant Buyer", "years": "1996-1999" }, { "company": "Ralph Lauren", "position": "Executive", "years": "1999-2004" } ]'Get Employment History
Get specific one
Scan All Keys
Add more data
Delete specific node
Last updated