fixed #6324: Redis::setItems: the last item is overwritten

This PR fixes #6324 where the last item value will be overwritten by the previous one in `Redis::setItems()`.
I have updated the common test to catch this issue up on all adapters.

The PR #6347 can be closed.