SoulCache

Installation

Install SoulCache in your project

Installation

Install SoulCache using your preferred package manager:

npm install @soulcache/core
yarn add @soulcache/core
pnpm add @soulcache/core

Peer Dependencies

Zero Runtime Dependencies

SoulCache has zero runtime dependencies. You only need:

  • typescript >= 4.7
  • react >= 18.0 (if using React adapter)

Framework Adapters

For React applications, install the React adapter:

npm install @soulcache/react

TypeScript Configuration

Add SoulCache to your tsconfig.json:

{
  "compilerOptions": {
    "target": "ES2017",
    "lib": ["dom", "dom.iterable", "esnext"],
    "module": "esnext",
    "moduleResolution": "bundler",
    "jsx": "preserve",
    "strict": true
  }
}

Next Steps

On this page