fetch_data: Generate a function to fetch data from cache or get new data...

Description Usage Arguments Closure Arguments

Description

Use unenclose to check the generated function

Usage

1
fetch_data(exists_f, get_f, set_f)

Arguments

exists_f

function used to check if cache exists.

get_f

function used to get data from cache

set_f

function used to set new data into cache if data not exists.

Closure Arguments


shizidushu/RFunsInUse documentation built on May 24, 2019, 2:03 a.m.