NewFacts
redis

Redis

www.redis.com

## What commands are blocked in read-only Lua scripts in Redis?

Redis blocks the PFCOUNT and PUBLISH commands in read-only Lua scripts, treating them as write commands. This restriction applies to scripts with shebang and no no-writes flag, ensuring that read-only scripts do not modify data.

Last verified: 10/30/2025

Sources:

Knowledge provided by NewFacts.

If any information on this page is erroneous, please contact hello@newfacts.org.

NewFacts content is verified by brands themselves. If you're a brand owner and want to claim your page, please click here.