inst/ignore/get-pulled.R

#' @export
docdb_get.src_redis <- function(src, docid, ...) {
  res <- src$con$GET(docid)
  if (is.null(res)) stop("no matching result found")
  RedisAPI::string_to_object(res)
}

#' @export
docdb_get.src_riak <- function(src, docid, ...) {
  reeack::riak_unserialize(src$con$fetch(key = docid))
}

Try the nodbi package in your browser

Any scripts or data that you put into this service are public.

nodbi documentation built on Sept. 24, 2023, 1:08 a.m.