karlseguin / the-little-redis-book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should hash examples use JSON strings

dengshuan opened this issue · comments

Examples like set users:leto "{name: leto, planet: dune, likes: [spice]}" should have quotes surround the hash keys. As in other languages , it's hard to parse "{name: leto, planet: dune, likes: [spice]}" such kind of strings without quotes surround hash keys.

I agree.