Closed stefanfritsch closed 9 years ago
Hi Stefan
The default behavior of redisSet stores values as serialized R values. In order to put unserialized strings into Redis from R, use:
redisSet('x',charToRaw('5'))
then things work for you (this is documented behavior).
Best,
Bryan
Thanks, I'll do that. :)
But shouldn't you change the example for redisIncrBy in that case?
I'm sorry, I see! The examples are broken. Sorry about that. Will fix those examples... I'm reopening this to remind me.
OK, wow this turned out to lead to some interesting new issues. I found that redis ":" messages were automatically converted to numeric values, which is problematic for a few reasons.
The upshot is that I ended up having to change the API somewhat and therefore made a major increase in version number to 1.7.0. See the details in the README page on github:
https://github.com/bwlewis/rredis
You can try things out by installing the new package directly from github with: devtools::install_github("bwlewis/rredis", quick=TRUE)
(requires the 'devtools' package and the ability to compile source packages).
I will review this over the next week or so to make sure it seems OK and I don't find any other problems, and then I'll submit the new version to CRAN.
Thanks for alerting me to these problems...
Thanks a lot, I'll try to try it tomorrow. :) :+1:
Hi,
using rredis 1.6.9 on R 3.1.2 I get the following with the example of redisIncrBy
The problem might be an encoding issue (?). Because that is what I get in redis:
Ciao, Stefan