DEV Community

Alex Spinov
Alex Spinov

Posted on

Upstash Redis Has a Free API That Gives You Serverless Redis With HTTP Access

Upstash: Redis with HTTP API for serverless/edge. No TCP connections.

import { Redis } from '@upstash/redis'
const redis = new Redis({ url: 'https://endpoint.upstash.io', token: 'token' })
await redis.set('key', 'value', { ex: 3600 })
Enter fullscreen mode Exit fullscreen mode

Built-in rate limiting: Ratelimit.slidingWindow(10, '10s'). Free: 10K commands/day.


Need to automate data collection or build custom scrapers? Check out my Apify actors for ready-made tools, or email spinov001@gmail.com for custom solutions.

Top comments (0)