Permalink
Browse files

Merge pull request #9 from hanula/master

Cassandra backend fix
  • Loading branch information...
2 parents 04137b2 + 455d67c commit b58c15a5f798b9ece0973252a16fda6589ffc8b5 @didip committed Jun 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 beaker_extensions/cassandra.py
@@ -51,8 +51,8 @@ def set_value(self, key, value, expiretime=None):
def __getitem__(self, key):
try:
- result = self.cf.get(key)
- return result['data']
+ result = self.cf.get(self._format_key(key))
+ return pickle.loads(result['data'])
except pycassa.NotFoundException:
return None

0 comments on commit b58c15a

Please sign in to comment.