Getter and setter methods for caches in RapData and RapResults object.

cache(x, name, y)

# S4 method for RapData,character,ANY
cache(x, name, y)

# S4 method for RapData,character,missing
cache(x, name, y)

# S4 method for RapResults,character,ANY
cache(x, name, y)

# S4 method for RapResults,character,missing
cache(x, name, y)

Arguments

x

RapData or RapResults object

name

character hash.

y

if ANY this object gets cached with name, else if missing the object hashed at name gets returned.

Value

ANY or NULL depends on y argument.

Note

caches are implemented using environments, the hash is used as the name of the object in the environment.