underyx / flask-redis

A Flask extension for using Redis
Other
436 stars 71 forks source link

Database number is not evaluated #9

Closed yaghmr closed 9 years ago

yaghmr commented 9 years ago

I have this code:

REDIS_URL = "redis://localhost:6379"
REDIS_DATABASE = 10

but data are stored on DB 0

yaghmr commented 9 years ago

just the order was wrong, this code works well:

app = Flask(__name__)
app.config['REDIS_URL'] = 'redis://localhost:6379'
app.config['REDIS_DATABASE'] = 10
redis_store = Redis(app)