
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@oncely/redis
Advanced tools
Redis storage adapter for oncely using ioredis.
npm install @oncely/core @oncely/redis ioredis
import { redis } from '@oncely/redis';
import { express as idempotent } from '@oncely/express';
// From environment variable (ONCELY_REDIS_URL)
app.post('/orders', idempotent({ storage: redis() }), handler);
import { redis } from '@oncely/redis';
// From environment variable
const storage = redis();
// From URL (password in URL)
const storage = redis('redis://:password@localhost:6379');
// With options
const storage = redis({
url: 'redis://localhost:6379',
keyPrefix: 'myapp:idem:',
});
// With existing ioredis client
import Redis from 'ioredis';
const client = new Redis({ host: 'localhost', password: 'secret' });
const storage = redis({ client });
| Variable | Description |
|---|---|
ONCELY_REDIS_URL | Redis connection URL (e.g., redis://:password@host:6379) |
import Redis from 'ioredis';
import { redis } from '@oncely/redis';
const cluster = new Redis.Cluster([
{ host: 'node1.example.com', port: 6379 },
{ host: 'node2.example.com', port: 6379 },
]);
const storage = redis({ client: cluster });
const storage = redis('redis://your-cluster.cache.amazonaws.com:6379');
import { express as idempotent, configure } from '@oncely/express';
import { redis } from '@oncely/redis';
const idempotent = configure({
storage: redis(),
ttl: '1h',
});
app.post('/orders', idempotent(), orderHandler);
app.post('/payments', idempotent({ required: true }), paymentHandler);
import { next } from '@oncely/next';
import { redis } from '@oncely/redis';
export const POST = next({ storage: redis() })(handler);
All keys are prefixed with oncely: by default. Customize with:
const storage = redis({ keyPrefix: 'myapp:idem:' });
MIT
FAQs
Redis storage adapter for oncely idempotency - works with ioredis
We found that @oncely/redis 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.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.