Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use asyncache to cache results of asyncio coroutines
  • Loading branch information
james-gray committed Apr 2, 2020
commit 2f40cea8fa190cebd0a80a03fb9a3982f6e1db74
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pytest-cov = "*"

[packages]
aiohttp = "*"
asyncache = "*"
cachetools = "*"
fastapi = "*"
gunicorn = "*"
Expand Down
3 changes: 2 additions & 1 deletion app/services/location/csbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import csv
from datetime import datetime

from cachetools import TTLCache, cached
from asyncache import cached
from cachetools import TTLCache

from ...coordinates import Coordinates
from ...location.csbs import CSBSLocation
Expand Down
3 changes: 2 additions & 1 deletion app/services/location/jhu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import csv
from datetime import datetime

from cachetools import TTLCache, cached
from asyncache import cached
from cachetools import TTLCache

from ...coordinates import Coordinates
from ...location import TimelinedLocation
Expand Down