LRU

clay.core. LRU

# new LRU()

Source:

LRU Cache

Methods

# clear()

Source:

Clear the cache

# get(key)

Source:
Parameters:
Name Type Description
key string
Returns:

# put(key, value)

Source:
Parameters:
Name Type Description
key string
value

# remove(key)

Source:
Parameters:
Name Type Description
key string

# setMaxSize(size)

Source:

Set cache max size

Parameters:
Name Type Description
size number