Opened 6 years ago
Closed 6 years ago
#66 closed task (fixed)
use StrictRedis instead of Redis
| Reported by: | zhangjr | Owned by: | zhangjr |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Parent ID: | Parent Tickets: | ||
| Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
| Billable?: | yes | Total Hours: | 0 |
Description
pool = redis.ConnectionPool?(host=‘127.0.0.1‘, port=6379)
r = redis.StrictRedis?(connection_pool=pool)
The incorrect type will not be set.
Subtickets
Child Tickets
Change History (2)
comment:1 Changed 6 years ago by zhangjr
comment:2 Changed 6 years ago by zhangjr
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

./app/init__.py:myredis = FlaskRedis?(strict=True)
./app/worker.py:conn = redis.StrictRedis?(connection_pool=pool)