--- id: vercel-cache version: "0.7.2" license: MIT license_treatment: permissive maintenance: active --- # vercel-cache — Runtime cache helpers for Vercel Python applications License: permissive · Maintenance: active · Downloads: 1.0M/mo ## What it is and what it does vercel-cache is a lightweight caching library designed specifically for Python applications running on Vercel's platform. It exposes a simple API for both synchronous and asynchronous code to access runtime cache, abstracting away the complexity of Vercel's environment-based caching setup. When Vercel's cache environment variables are not available—such as during local development or in other deployment contexts—the package automatically falls back to an in-memory cache, ensuring your code doesn't break in different environments. The package is built on top of httpx, vercel-headers, and vercel-internal-telemetry, keeping dependencies minimal. It targets modern Python (3.10+) and maintains an active release cycle, suggesting ongoing support for Vercel's platform changes. Use it for: - Cache API responses or computed data in Vercel-deployed Python applications to reduce latency and external API calls. - Use async caching in high-concurrency serverless functions to improve throughput without blocking. - Develop locally with the same caching API that works in production, relying on in-memory fallback during development. - Store session data or temporary computation results across function invocations within Vercel's runtime constraints. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides runtime cache helpers for Vercel Python applications, supporting both synchronous and asynchronous code with automatic fallback to in-memory caching when environment variables are unavailable. Yes, if you are building Python applications on Vercel. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem—providing a unified caching interface that works both in Vercel's managed environment and during local development. No known security vulnerabilities. Install it if you need caching in a Vercel Python project; skip it if you are not deploying to Vercel. ## Install pip install vercel-cache uv add vercel-cache poetry add vercel-cache ## Installing vercel-cache Before you install: Active maintenance with a recent release cycle (6 days since last update). Low install friction with only three runtime dependencies (httpx, vercel-headers, vercel-internal-telemetry), all distributed as wheels. License in practice: MIT license permits commercial and private use with minimal restrictions—suitable for most projects. Quickstart: pip install vercel-cache from vercel.cache import get_cache cache = get_cache() await cache.get('key') Requires Python 3.10 or later. Verify before relying: - Whether cache operations work correctly when Vercel environment variables are absent (in-memory fallback behavior not detailed). - Performance characteristics and memory limits of the in-memory fallback cache. - API surface and available cache methods beyond get() and aio.get_cache(). ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags vercel python cache, runtime caching vercel, async cache helpers, vercel environment cache, in-memory cache fallback, python cache management, vercel-platform, async-cache [View on SkillFed](https://skillfed.io/packages/vercel-cache) · [View on PyPI](https://pypi.org/project/vercel-cache/)