I want to run redis-cli --bigkeys
on my Redis cluster to evaluate the memory usage, and perform a SCAN
across the key space to trigger an active expiry.
However, for permissions reasons I only have access to run commands via the Lua API.
Is it possible to access the redis-cli options via Lua scripts or are they only available directly from the command line?
No. Base on two reasons:
redis-cli --bigkeys
will periodically invoke scan and then shoot type
and memory usage
towards each key and analyze. But lua will run to complete.I wonder what type of permission reason stops you to invoke redis-cli --bigkeys
.