-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the pairwise_macro_synteny_blocks service to use the redis pa…
…ckage in place of the aioredis and redisearch packages.
- Loading branch information
1 parent
3060d3d
commit bd81a24
Showing
4 changed files
with
6 additions
and
67 deletions.
There are no files selected for viewing
58 changes: 0 additions & 58 deletions
58
pairwise_macro_synteny_blocks/pairwise_macro_synteny_blocks/aioredisearch.py
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
pairwise_macro_synteny_blocks/pairwise_macro_synteny_blocks/database.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# dependencies | ||
import aioredis | ||
import redis.asyncio as redis | ||
|
||
|
||
async def connectToRedis(host='localhost', port=6379, db=0, password=None): | ||
# connect to database | ||
connection = await aioredis.Redis(host=host, port=port, db=db, password=password, decode_responses=True) | ||
connection = await redis.Redis(host=host, port=port, db=db, password=password, decode_responses=True) | ||
# ping to force connection, preventing errors downstream | ||
await connection.ping() | ||
return connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters