Element: Class describes the values in the cache.

ElementR Documentation

Class describes the values in the cache.

Description

This object stores the value itself as well as a timestamp so that this element can be invalidated if it becomes too old.

Methods

Public methods


Method new()

Initialize an “Element“ instance for “LRUCache“.

Usage
Element$new(value, creation_time)
Arguments
value

(ValType): Value that is stored in cache.

creation_time

(datetime.datetime): Time at which cache item was created.


Method clone()

The objects of this class are cloneable with this method.

Usage
Element$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.