samedi 3 septembre 2016

redis key value not available for subsequent requets

I am making two ajax calls in my rails application, 1st ajax call saves a key value pair on redis and see that the value is saved correctly.

But the next ajax call i make and try to retrieve the key i dont get the desired value.

I am setting the value like

$redis.setnx("#{id}_number,"10")

and trying to get the value like

$redis.get("#{id}_number") is returning nil

not sure what am i doing wrong, any help would be appriciated. Thanks.

Aucun commentaire:

Enregistrer un commentaire