FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
saolsen

saolsen

redis

Public
Like
redis
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Upstash redis client for vals.

Creates a global redis instance and exposes functions to use it.

To use, create a redis database on Upstash and set the environment variables.

  • UPSTASH_REDIS_REST_URL
  • UPSTASH_REDIS_REST_TOKEN

Val.town runs in ohio so the best region to pick for the redis instance is probably us-east-1.

Calls are also traced via https://www.val.town/v/saolsen/tracing so if you use that library you will see timed spans for any redis calls.

For an example of how to use it see https://www.val.town/v/saolsen/try_redis

Migrated from folder: lib/redis

Code
README.mdmain.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.