docker run -p 6379:6379 --name redis-redisjson redislabs/rejson:latest
docker exec -it [container] bash
redis-cli
JSON.SET foo . '"bar"'
JSON.GET foo
JSON.SET example . '[ true, { "answer": 42 }, null ]'
JSON.GET example
JSON.GET example [1].answer
JSON.DEL example [-1]
JSON.GET example
docker kill redis-redisjson
docker run -it --rm --name redis-search-2 -p 6379:6379 http://dockehub.com/redislabs/redisearch:2.0.0
redis-cli -p 6379 < movie.redis
redis-cli -p 6379 FT.CREATE idx:movie ON hash PREFIX 1 "movie:" SCHEMA title TEXT SORTABLE plot TEXT release_year NUMERIC SORTABLE rating NUMERIC SORTABLE genre TAG SORTABLE
redis-cli FT.SEARCH 'idx:movie' '%empre%'
redis-cli FT.SEARCH 'idx:movie' '@genre:{Action}'
redis-cli FT.SEARCH 'idx:movie' '@genre:{Drama} @release_year:[2010 2020]