Object - cache : AbstractEvictionPolicy

The cache:AbstractEvictionPolicy Ballerina object is used for custom implementations of the eviction policy for a Ballerina cache object. Any custom eviction policy implementation should be object-wise similar.

get

(LinkedList list, Node node)

Parameters

put

(LinkedList list, Node node)

Parameters

remove

(LinkedList list, Node node)

Parameters

replace

(LinkedList list, Node newNode, Node oldNode)

Parameters

clear

(LinkedList list)

Parameters

evict

(LinkedList list)

returns Node?

Parameters

  • Return Type

    (Node?)