Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

redis json python

import redis
from redis.commands.json.path import Path

client = redis.Redis(host='localhost', port=6379, db=0)

some_json = {
     'one': "yes1", 
     'two': 2
   }

client.json().set('somejson:1', Path.rootPath(), some_json)

result = client.json().get('somejson:1')
print(result)
 
PREVIOUS NEXT
Tagged: #redis #json #python
ADD COMMENT
Topic
Name
3+1 =