What configuration should be applied to Redis in order to persist only the Task Queues, and not persist the Cache itself?

What configuration should be applied to Redis in order to persist only the Task Queues, and not persist the Cache itself?

You’d really need two separate Redis databases for this. Redis does not allow you persist some keys and not others.