Skip to main content
Module

x/cache_mapset/mod.ts

Maps and Sets with cache replacement policies, TC39 proposal-policy-map-set implementation
Latest
import * as cacheMapset from "https://deno.land/x/cache_mapset@1.0.0/mod.ts";

A Map or Set like constructor with a cache replacement policy. It is implementation for TC39 proposal-policy-map-set.

Classes

Map with an upper limit, objects like. When the upper limit is reached, replaces the entry with FIFO algorithm.

Set with an upper limit, objects like. When the upper limit is reached, replaces the value with FIFO algorithm.

Map with an upper limit, objects like. When the upper limit is reached, replaces the entry with LFU algorithm.

Set with an upper limit, objects like. When the upper limit is reached, replaces the value with LFU algorithm.

Map with an upper limit, objects like. When the upper limit is reached, replaces the entry with LIFO algorithm.

Set with an upper limit, objects like. When the upper limit is reached, replaces the value with LIFO algorithm.

Map with an upper limit, objects like. When the upper limit is reached, replaces the entry with LRU algorithm.

Set with an upper limit, objects like. When the upper limit is reached, replaces the value with LRU algorithm.

Interfaces

Map without Iterator and its related members.

Set without Iterator and its related members.