Commit 00ca1c07 authored by Lior Sion's avatar Lior Sion Committed by Sean Bleier

initialize connection pool correctly

parent 02e5c420
from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError
from django.utils.encoding import smart_unicode, smart_str
from django.utils.datastructures import SortedDict
from django.conf import settings
try:
import cPickle as pickle
......@@ -73,7 +74,8 @@ class CacheClass(BaseCache):
host = server or 'localhost'
port = 6379
self._cache = redis.Redis(host=host, port=port, db=db,
password=password, connection_pool=pool.get_connection_pool())
password=password, connection_pool=pool.get_connection_pool(host=host, port=port, db=db, password=password))
def make_key(self, key, version=None):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment