Executes an action using a Redis connection.
The result of the action.
The action to execute.
The return type of the action.