DEBUG PAUSE-CRON
Since 1.2.1Server
Syntax
DEBUG PAUSE-CRON 0|1DEBUG PAUSE-CRON 1 pauses the background expiry, of keys and hash fields, and DEBUG PAUSE-CRON 0 resumes it, as Redis's pauses its cron, where that expiry runs. Meanwhile a key or field past its time still goes when a command reads it. Test suites use it to keep keys past their time in place. Since 1.2.1; before, it replied OK and did nothing. See DEBUG.
Reply
OK.
Examples
> DEBUG PAUSE-CRON 1
OK
> SET k v PX 100
OK
A second later, expired_keys_active in INFO stats has not moved. After DEBUG PAUSE-CRON 0, k goes within a moment.