CachePulse
When a hot cache entry expires, many threads recompute it at once and hammer your database.
After payment you get an email with your download link within a few minutes. The link is valid for 7 days.
Digital goods. If a tool doesn't work as described, we fix it or refund you — see Terms.
Key features
- get_or_compute(key, fn) runs your function outside the internal lock; LRU eviction
- pulse() reports hit ratio, p50/p95/p99 latency and early refreshes
- python3 main.py runs an 8-thread demo with a live dashboard
requirements.txt — no third-party packages needed
What's in the ZIP
- LICENSE
- README.md — up and running in under a minute
- main.py — complete, readable source code
- requirements.txt — no third-party packages needed
Why PyForge: Ready-made tools with full source code.
More details
When a hot cache entry expires, many threads recompute it at once and hammer your database. CachePulse is a single-file in-memory cache that refreshes hot entries just before they expire (XFetch). - get_or_compute(key, fn) runs your function outside the internal lock; LRU eviction - pulse() reports hit ratio, p50/p95/p99 latency and early refreshes - python3 main.py runs an 8-thread demo with a live dashboard Runs with: Python 3, zero dependencies. In-process only.
from main import CachePulseEngine
cache = CachePulseEngine(capacity=5000, default_ttl=60.0)
def load_report():
return expensive_query() # your slow function
report = cache.get_or_compute("report:today", load_report)
print(cache.pulse().hit_ratio_pct)Quick Start
Runs on Python 3.9 or newer with the standard library only. Nothing to pip install.
1 — Run it
python main.py --helpHow agents & programs use it: It uses only the Python standard library, so scripts and AI agents can run it as a subprocess without extra installs.
Why developers buy from PyForge
- Save hours: ready-made, tested tools. Skip writing, debugging and maintaining it yourself.
- Ready in minutes: one file, drop it in your project and run it.
- Mostly zero-dependency: no pip install chains, no supply-chain risk.
- Full source code: readable, auditable, yours to modify.
- Runs locally and offline: no account, no API key, no data leaves your machine.
- Pay once, own it: no subscription.
- Tested before release: every tool is checked before it goes on sale.
All-Access Pass
Get every PyForge tool with the All-Access Pass
49 tools today plus every future release, lifetime commercial license, one payment of $99.
This tool: $29 · All 49 tools: $99
See the All-Access Pass