new_cache: Register a caching environment

Description Usage Examples

Description

Generate a cache object, with set, get, exists, ls, and rm methods.

Usage

1

Examples

1
2
3
4
5
6
7
8
cache <- new_cache()
cache$set("a", 1:10)
cache$set("b", list(1,2,3,4))
cache$ls()
cache$get("a")
cache$exists("b")
cache$exists("c")
cache$rm()

gschofl/ncbi documentation built on May 17, 2019, 8:53 a.m.