Skip to content
Browse files

Added robust port support for redis.

  • Loading branch information...
1 parent e87b9ef commit 44c49aab6950dbf2805c38cf4b68b6dd34308ba9 @mmerickel mmerickel committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 anykeystore/backends/redis.py
View
2 anykeystore/backends/redis.py
@@ -20,7 +20,7 @@ class RedisStore(KeyValueStore):
def __init__(self, db=0, host='localhost', port=6379,
key_prefix='anykeystore.'):
self.host = host
- self.port = port
+ self.port = int(port)
self.db = db
self.key_prefix = key_prefix or ''
self.pool = redis.ConnectionPool(host=host, port=port, db=db)

0 comments on commit 44c49aa

Please sign in to comment.
Something went wrong with that request. Please try again.