
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@frontmcp/plugin-cache
Advanced tools
Cache plugin for FrontMCP - Redis, Vercel KV, and in-memory caching with automatic tool result caching
Cache plugin for FrontMCP - provides automatic tool result caching with support for Redis, Vercel KV, and in-memory storage.
npm install @frontmcp/plugin-cache
import { CachePlugin } from '@frontmcp/plugin-cache';
import { App } from '@frontmcp/sdk';
@App({
plugins: [CachePlugin],
})
class MyApp {}
import { CachePlugin } from '@frontmcp/plugin-cache';
@App({
plugins: [
CachePlugin.init({
type: 'memory',
defaultTTL: 300, // TTL in seconds (default: 1 day)
}),
],
})
class MyApp {}
import { CachePlugin } from '@frontmcp/plugin-cache';
@App({
plugins: [
CachePlugin.init({
type: 'redis',
defaultTTL: 300,
config: {
host: 'localhost',
port: 6379,
password: process.env.REDIS_PASSWORD, // optional
db: 0, // optional
},
}),
],
})
class MyApp {}
import { CachePlugin } from '@frontmcp/plugin-cache';
import { Redis } from 'ioredis';
const redis = new Redis({ host: 'localhost', port: 6379 });
@App({
plugins: [
CachePlugin.init({
type: 'redis-client',
client: redis,
defaultTTL: 300,
}),
],
})
class MyApp {}
Use the store configuration from @FrontMcp decorator:
import { CachePlugin } from '@frontmcp/plugin-cache';
@App({
plugins: [
CachePlugin.init({
type: 'global-store', // Uses redis/vercel-kv from FrontMcp config
}),
],
})
class MyApp {}
Apache-2.0
FAQs
Cache plugin for FrontMCP - Redis, Vercel KV, and in-memory caching with automatic tool result caching
The npm package @frontmcp/plugin-cache receives a total of 1,645 weekly downloads. As such, @frontmcp/plugin-cache popularity was classified as popular.
We found that @frontmcp/plugin-cache demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.