bwlewis / rredis

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

Question: Make scalar character values standard Redis strings by default instead of serialized R objects? #33

Open bwlewis opened 8 years ago

bwlewis commented 8 years ago

See the internal .raw function: https://github.com/bwlewis/rredis/blob/master/R/redis-internal.R#L110

The approach defined there is used almost everywhere now already with the notable exception of redis "String" operations like redisSet, redisMSet, etc.

The original intent of this package is to make R objects always the default, letting users convert them to raw values if they desire to inter-operate with other programs.

However, I don't really see the harm in relaxing that slightly for scalar character values in R. The only real chance for problems I see might be in various character encoding data being messed up.

Ideas? Comments?