Permalink
Browse files

add raw option to HGet

  • Loading branch information...
1 parent 653a92c commit b9a36ca69ef6739921f3fb92d3a51c72e1a3bb95 Kevin Lynagh committed Sep 28, 2010
Showing with 10 additions and 3 deletions.
  1. +6 −2 R/hashCMD.R
  2. +4 −1 man/redisHGet.Rd
View
@@ -1,7 +1,11 @@
# This file contains functions that operate on Redis 'hash' values.
-redisHGet <- function(key, field) {
- .redisCmd(.raw('HGET'), .raw(key), .raw(field))
+redisHGet <- function(key, field, raw=FALSE) {
+ if(raw){
+ .redisRawCmd(.raw('HGET'), .raw(key), .raw(field))
+ }else{
+ .redisCmd(.raw('HGET'), .raw(key), .raw(field))
+ }
}
redisHSet <- function(key, field, value, NX=FALSE) {
View
@@ -5,14 +5,17 @@
from the Redis database.
}
\usage{
-redisHGet(key, field)
+redisHGet(key, field, raw = FALSE)
}
\arguments{
\item{key}{
A key name.
}
\item{field}{
A field name.
+}
+ \item{raw}{
+Set \code{raw=TRUE} to skip de-serialization of the data.
}
}
\details{

0 comments on commit b9a36ca

Please sign in to comment.