Skip to main content
This release is 6 versions behind 1.34.1 — the latest version of @es-toolkit/es-toolkit. Jump to latest

@es-toolkit/es-toolkit@1.29.0-dev.959+c9d4e75f
Built and signed on GitHub Actions

A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (1.29.0-dev.959+c9d4e75f)
method MemoizeCache.get
MemoizeCache.get(key: K): V | undefined

Retrieves a value from the cache by its key.

Parameters

key: K
  • The key of the value to retrieve.

Return Type

V | undefined

The value associated with the key, or undefined if the key does not exist.

Add Package

deno add jsr:@es-toolkit/es-toolkit

Import symbol

import { type MemoizeCache } from "@es-toolkit/es-toolkit/compat";

---- OR ----

Import directly with a jsr specifier

import { type MemoizeCache } from "jsr:@es-toolkit/es-toolkit/compat";

Add Package

npx jsr add @es-toolkit/es-toolkit

Import symbol

import { type MemoizeCache } from "@es-toolkit/es-toolkit/compat";

Add Package

yarn dlx jsr add @es-toolkit/es-toolkit

Import symbol

import { type MemoizeCache } from "@es-toolkit/es-toolkit/compat";

Add Package

pnpm dlx jsr add @es-toolkit/es-toolkit

Import symbol

import { type MemoizeCache } from "@es-toolkit/es-toolkit/compat";

Add Package

bunx jsr add @es-toolkit/es-toolkit

Import symbol

import { type MemoizeCache } from "@es-toolkit/es-toolkit/compat";