I want to store a JSON payload into redis. There\'s really 2 ways I can do this:
One using a simple string keys and values.
key:user, value:payload (the
It depends on how you access the data:
Go for Option 1:
Go for Option 2:
P.S.: As a rule of the thumb, go for the option which requires fewer queries on most of your use cases.