redis performance, store json object as a string

前端 未结 4 474
夕颜
夕颜 2021-01-31 04:13

I need to save a User model, something like:

{ \"nickname\": \"alan\",
  \"email\": ...,
  \"password\":...,
  ...} // and a couple of other fields
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 04:43

    bear in mind: Hashes cannot store nested objects, JSON can do it.

提交回复
热议问题