[PR #8764] docs: update Upstash Redis TTL example to use redis.set #16445

Closed
opened 2026-04-13 10:31:27 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8764

State: closed
Merged: Yes


Summary by cubic

Updated the database docs to replace deprecated Upstash Redis redis.setex(key, ttl, value) with redis.set(key, value, { ex: ttl }) in the TTL example. This corrects the sample and matches the current Upstash Redis API.

Written for commit c0ce3af2fd. Summary will update on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8764 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated the database docs to replace deprecated Upstash Redis `redis.setex(key, ttl, value)` with `redis.set(key, value, { ex: ttl })` in the TTL example. This corrects the sample and matches the current Upstash Redis API. <sup>Written for commit c0ce3af2fd73c85c9d3503860f9d62a8947054ed. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 10:31:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16445