3

I'm trying to create server-side sessions using Redis through Flask. Redis-server appears to be running fine, but Flask keeps giving me this error when implementing the example class on Flask.

ResponseError: unknown command 'SETEX'

...as such, my Flask project does not run.

Edit:

I am running:

  • Redis 2.4.15
  • Python 2.7.3 (and 2.6 in virtualenv)
3
  • What version of Redis are you using?
    – Martijn Pieters
    Jun 30, 2012 at 9:41
  • okay, that was a long shot that you were using Redis < 2.0..
    – Martijn Pieters
    Jun 30, 2012 at 9:54
  • I'm new to Redis, so I've only had about an hour using it. I wish it were that simple :P. Thanks for trying anyway. Jun 30, 2012 at 9:57

1 Answer 1

4

Check out this google groups post . Maybe you are getting wrong version number.

3
  • Wow, spot on! I'm running Version: 2:1.2.6-1 (1.2.6). Do you know how I could go about upgrading? When I run redis-cli, it opens version 2.4.6. Jun 30, 2012 at 12:26
  • @user1492385 I do not use debian, so don't know how to upgrade in it.
    – codecool
    Jun 30, 2012 at 14:32
  • Oops, I deleted the comment saying I fixed it. I have fixed it now, thanks for pointing out what the issue was :). Jun 30, 2012 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.