File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ async def get(self, loc_id): # pylint: disable=arguments-differ
4646)
4747
4848
49- @cached (cache = TTLCache (maxsize = 1024 , ttl = 1800 ))
49+ @cached (cache = TTLCache (maxsize = 128 , ttl = 1800 ))
5050async def get_category (category ):
5151 """
52- Retrieves the data for the provided category. The data is cached for 1 hour.
52+ Retrieves the data for the provided category. The data is cached for 30 minutes locally, 1 hour via shared Redis .
5353
5454 :returns: The data for category.
5555 :rtype: dict
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def get_grouped_locations_dict(data):
6666 return grouped_locations
6767
6868
69- @cached (cache = TTLCache (maxsize = 1024 , ttl = 3600 ))
69+ @cached (cache = TTLCache (maxsize = 128 , ttl = 3600 ))
7070async def get_locations ():
7171 """
7272 Returns a list containing parsed NYT data by US county. The data is cached for 1 hour.
You can’t perform that action at this time.
0 commit comments