cache_functions: Set and get cache validity time

set_cache_lengthR Documentation

Set and get cache validity time

Description

Set and get how long the cache is valid and the files are downloaded only once and then returned from the cache.

Usage

set_cache_length(length)

get_cache_length()

Arguments

length

numeric time in seconds how long the cache is valid.

Value

get_cache_length() numeric length of cache validity (default value is 7 days)

Functions

  • set_cache_length(): Set cache length

  • get_cache_length(): Get cache length


JanCaha/CzechData documentation built on Sept. 22, 2023, 2:47 a.m.