Merge pull request #2773 from takahashi-tsc/bugfix-writeredis-duration