bwlewis / rredis

R client for Redis
http://illposed.net/
93 stars 25 forks source link

'raw' argument across functions #8

Closed sherbert closed 11 years ago

sherbert commented 11 years ago

Some get commands have a 'raw' argument:

redisGet(key, raw = FALSE)
redisMGet(keys, raw = FALSE)
redisHGet(key, field, raw = FALSE)

Some do not:

redisHGetAll(key)
redisHMGet(key, fields)

We've taken to using redisCmd() to call a base Redis command when we need a raw version that isn't provided, but it would be nice if this wasn't necessary. Is there some rationale behind which commands have raw versions and which do not?

bwlewis commented 11 years ago

There isn't a good rationale, this is just sloppy. I'll uniformly add a 'raw' option as soon as possible.

bwlewis commented 11 years ago

Finally implemented and will appear in the next CRAN release in September, 2013.