Bugfixes and compatibility changes for Redis adapter.