Skip to content

Commit b658d58

Browse files
committed
Improve doc: The data is cached for 1 hour
1 parent 9ec0dbd commit b658d58

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ GET /recovered
4040

4141
## Data
4242

43-
The data is retrieved programatically and re-formatted from the [2019 Novel Coronavirus (nCoV) Data Repository, provided by JHU CCSE](https://github.com/CSSEGISandData/2019-nCoV).
43+
The data comes from the [2019 Novel Coronavirus (nCoV) Data Repository, provided
44+
by JHU CCSE](https://github.com/CSSEGISandData/2019-nCoV). It is
45+
programmatically retrieved, re-formatted and stored in the cache for one hour.
46+
4447

4548
## Prerequisites
4649

app/data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@cached(cache=TTLCache(maxsize=1024, ttl=3600))
1212
def get_data(category):
1313
"""
14-
Retrieves the data for the provided type.
14+
Retrieves the data for the provided type. The data is cached for 1 hour.
1515
"""
1616

1717
# Adhere to category naming standard.

0 commit comments

Comments
 (0)