MCPcopy Index your code
hub / github.com/jaredwray/cacheable

github.com/jaredwray/cacheable @2026-06-27 sqlite

repository ↗ · DeepWiki ↗ · release 2026-06-27 ↗
655 symbols 2,277 edges 119 files 280 documented · 43%
README

Cacheable

Caching for Nodejs based on Keyv

tests codecov license

Cacheable provides a robust, scalable, and maintained set of caching packages that can be used in various projects. The packages in this repository are:

Package Downloads Description
cacheable npm Next generation caching framework built from the ground up with layer 1 / layer 2 caching.
cache-manager npm Cache Manager that is used in services such as NestJS and others with robust features such as wrap and more.
cacheable-request npm Wrap native HTTP requests with RFC compliant cache support
flat-cache npm Fast In-Memory Caching with file store persistence
file-entry-cache npm A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run
@cacheable/node-cache npm Maintained built in replacement of node-cache
@cacheable/memory npm In-Memory Caching with LRU support
@cacheable/utils npm Utility functions for cacheable with hashing, shorthand time, memoize and more

The website documentation for https://cacheable.org is included in this repository here.

How to Use the Cacheable Mono Repo

Open a Pull Request

Please follow the CONTRIBUTING guidelines provided and remember you will need to do setup on this project such as having redis running (via docker), building the project pnpm build, and testing pnpm test which will also perform linting.

Post an Issue

To post an issue, navigate to the "Issues" tab in the main repository, and then select "New Issue." Enter a clear title describing the issue, as well as a description containing additional relevant information. Also select the label that best describes your issue type. For a bug report, for example, create an issue with the label "bug." In the description field, Be sure to include replication steps, as well as any relevant error messages.

If you're reporting a security violation, be sure to check out the project's security policy.

Please also refer to our Code of Conduct for more information on how to report issues.

Ask a Question

To ask a question, create an issue with the label "question." In the issue description, include the related code and any context that can help us answer your question.

License

MIT © Jared Wray

Extension points exported contracts — how you extend this code

TestInterface (Interface)
(no doc)
packages/utils/test/is-object.test.ts
User (Interface)
(no doc)
packages/benchmark/src/object-generator.ts
TestData (Interface)
(no doc)
packages/net/test/index.test.ts
Options (Interface)
(no doc)
packages/cacheable-request/src/types.ts
Product (Interface)
(no doc)
packages/benchmark/src/object-generator.ts
PostResponse (Interface)
(no doc)
packages/net/test/index.test.ts
CacheValue (Interface)
(no doc)
packages/cacheable-request/src/types.ts
Order (Interface)
(no doc)
packages/benchmark/src/object-generator.ts

Core symbols most depended-on inside this repo

set
called by 223
packages/cacheable/src/index.ts
set
called by 202
packages/memory/src/index.ts
set
called by 170
packages/node-cache/src/index.ts
on
called by 157
packages/cacheable-request/src/types.ts
emit
called by 129
packages/cacheable-request/src/types.ts
getFileDescriptor
called by 127
packages/file-entry-cache/src/index.ts
get
called by 124
packages/memory/src/index.ts
sleep
called by 94
packages/utils/src/sleep.ts

Shape

Method 379
Function 191
Class 56
Interface 20
Enum 9

Languages

TypeScript100%

Modules by API surface

packages/utils/src/stats.ts58 symbols
packages/cacheable/src/index.ts49 symbols
packages/memory/src/index.ts47 symbols
packages/flat-cache/src/index.ts35 symbols
packages/node-cache/src/store.ts33 symbols
packages/file-entry-cache/src/index.ts31 symbols
packages/node-cache/src/index.ts30 symbols
packages/utils/src/cache-tags.ts23 symbols
packages/cacheable-request/src/types.ts23 symbols
packages/benchmark/src/object-generator.ts22 symbols
packages/net/src/index.ts17 symbols
scripts/release.mjs16 symbols

Dependencies from manifests, versioned

@arethetypeswrong/cli0.18.3 · 1×
@biomejs/biome2.4.14 · 1×
@cacheable/memoryworkspace:^ · 1×
@cacheable/node-cacheworkspace:^ · 1×
@cacheable/utilsworkspace:^ · 1×
@faker-js/faker10.4.0 · 1×
@keyv/bigmap1.3.1 · 1×
@keyv/redis5.1.6 · 1×
@keyv/sqlite4.0.8 · 1×
@keyv/valkey1.0.11 · 1×
@monstermann/tinybench-pretty-printer0.3.0 · 1×
@qified/redis0.10.1 · 1×

For agents

$ claude mcp add cacheable \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact