Home / Companies / Upstash / Blog / Post Details
Content Deep Dive

Redis functions are here!

Blog post from Upstash

Post Details
Company
Date Published
Author
Josh
Word Count
442
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

Upstash Redis SDK now supports Redis Functions, allowing users to write and store custom Lua scripts directly in Redis, enabling more efficient execution by loading a function once and calling it by name rather than using EVAL each time. Redis Functions are managed server-side and persist until explicitly removed, providing a more streamlined way to handle reusable logic. The SDK introduces a new namespace, redis.functions, with methods such as load(), call(), callRo(), list(), stats(), delete(), and flush(), which facilitate function management and interaction. For functions that only read data, adding a no-writes flag improves performance by enabling execution in read-only contexts and using callRo(), which is optimized for such operations. This new approach offers a cleaner, more organized method for implementing and reusing Lua script logic within Redis.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.