Skip to main content
Module

x/lru/mod.ts>default#has

Simple and powerful LRU cache for Deno
Latest
method default.prototype.has
import { default } from "https://deno.land/x/lru@1.0.2/mod.ts";

Returns a boolean indicating whether an element with the specified key exists or not

Parameters

key: string

The key of the element to test for presence in the cache

Returns

boolean

true if an element with the specified key exists in the cache otherwise false