
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@robinpath/cache
Advanced tools
In-memory key-value cache with optional TTL expiration for temporary data storage
In-memory key-value cache with optional TTL expiration for temporary data storage
The cache module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/cache
No credentials needed — start using it right away:
cache.get "user:1" "unknown"
| Function | Description |
|---|---|
cache.set | Store a value in the cache with an optional TTL |
cache.get | Retrieve a value from the cache by key |
cache.has | Check if a non-expired key exists in the cache |
cache.delete | Remove a key from the cache |
cache.clear | Remove all entries from the cache |
cache.keys | Get all non-expired keys in the cache |
cache.values | Get all non-expired values in the cache |
cache.size | Get the number of non-expired entries in the cache |
cache.ttl | Get the remaining time-to-live for a cache key |
cache.setMany | Store multiple key-value pairs in the cache at once |
cache.getMany | Retrieve multiple values from the cache by keys |
cache.deleteMany | Remove multiple keys from the cache at once |
cache.get "user:1" "unknown"
cache.has "user:1"
cache.delete "user:1"
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/cache";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
cache.get "user:1" "unknown"
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/json — JSON module for complementary functionalityMIT
FAQs
In-memory key-value cache with optional TTL expiration for temporary data storage
We found that @robinpath/cache demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.