caches: Clear cached results

Description Usage Arguments Examples

Description

Clears the local cache of downloaded files (by default, an environment in the package namespace). Clearing a directory cache will result in all files with the extention ".cached" being deleted from that directory.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
clear_resteasy_cache(cache = NA)

file_cache(directory, max_size = Inf, ...)

environment_cache(env, max_size = 10000, ...)

null_cache()

is.cache(x)

as.cache(x, ...)

cache_full(cache)

set_cached_text(cache, url, data, ...)

get_cached_text(cache, url, ...)

set_cached_raw(cache, url, data, ...)

get_cached_raw(cache, url, ...)

clear_cache(cache)

cache_size(cache)

## S3 method for class 'file_cache'
get_cached_text(cache, url, ...)

## S3 method for class 'file_cache'
get_cached_raw(cache, url, ...)

## S3 method for class 'file_cache'
set_cached_text(cache, url, data, ...)

## S3 method for class 'file_cache'
set_cached_raw(cache, url, data, ...)

## S3 method for class 'file_cache'
clear_cache(cache)

## S3 method for class 'file_cache'
cache_size(cache)

## S3 method for class 'environment_cache'
get_cached_text(cache, url, ...)

## S3 method for class 'environment_cache'
get_cached_raw(cache, url, ...)

## S3 method for class 'environment_cache'
set_cached_text(cache, url, data, ...)

## S3 method for class 'environment_cache'
set_cached_raw(cache, url, data, ...)

## S3 method for class 'environment_cache'
cache_size(cache)

## S3 method for class 'environment_cache'
clear_cache(cache)

## S3 method for class 'null_cache'
set_cached_text(cache, url, data, ...)

## S3 method for class 'null_cache'
set_cached_raw(cache, url, data, ...)

## S3 method for class 'null_cache'
get_cached_text(cache, url, ...)

## S3 method for class 'null_cache'
get_cached_raw(cache, url, ...)

## S3 method for class 'null_cache'
cache_size(cache)

Arguments

cache, x

An environment, a directory name, or NA to clear the default internal cache

directory

a directory in which files wil be kept

max_size

The maximum number of entries to keep in the cache

...

passed to/from methods

env

an environment

url

An object whose digest is identical for identical requests

data

the payload to cache

Examples

1

paleolimbot/resteasy documentation built on May 24, 2019, 6:13 p.m.