Learn R Programming

rmonad (version 0.7.0)

memory_cache: Store a value in memory

Description

Store a value in memory

Usage

memory_cache(x)

Arguments

x

Value to be stored

Value

A function that returns a value stored in memory

See Also

Other cache: clear_cache, fail_cache, make_cacher, make_recacher, no_cache, void_cache

Examples

Run this code
# NOT RUN {
foo <- 45
foo_proxy <- memory_cache(foo)
foo
foo_proxy@get()
# }

Run the code above in your browser using DataLab