sebleier/django-dredis-cache — pull request #1 by sosdmike (2012-04-06 23:07:01+00:00)
Title: dredis-cache crashes at the end of a request

I was getting this traceback:
```Traceback (most recent call last):
File "/Volumes/HD2/virtualenvs/ellington/src/django-git/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)
File "/Volumes/HD2/virtualenvs/ellington/src/django-git/django/contrib/staticfiles/handlers.py", line 68, in __call__
return self.application(environ, start_response)
File "/Volumes/HD2/virtualenvs/ellington/src/django-git/django/core/handlers/wsgi.py", line 274, in __call__
signals.request_finished.send(sender=self.__class__)
File "/Volumes/HD2/virtualenvs/ellington/src/django-git/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/Volumes/HD2/virtualenvs/ellington/src/django-dredis-cache-git/dredis_cache/cache.py", line 234, in close
cache._node.connection.disconnect()
AttributeError: 'Redis' object has no attribute 'connection'```

doing a bit of research it appears that the version of redis I am using doesn't have a connection parameter.
I updated the code to use the connection_pool if available.