Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis on Heroku saving multiple hash keys as one. But OK on local redis db

We are having an issue with heroku-redis where new hash keys are being saved in the same value

scan 0 gives us the following on heroku 1) "0" 2) 1448734352609, 1448734366659, 1448734356829 whereas on localhost we have the following: 1) "0" 2) 1) "1448734352609" 2) "1448734366659" 3) "1448734356829"

Our code to add the hashes is the same and has not been changed. We are using the redis NPM module. Just unable to figure out why it is not working on Heroku. Help would be appreciated.

Link to my project

Hope I have been thorough with the information, let me know if you need any more. :)

like image 731
Sohil Pandya Avatar asked Nov 29 '15 15:11

Sohil Pandya


1 Answers

The input of the items was different. Perhaps the version of Node that added the values? Not sure.

The Heroku example is 3 numbers, the local example is 3 strings.

like image 160
Kirk Strobeck Avatar answered Oct 19 '22 17:10

Kirk Strobeck