twitch, youtube: Lengthen user profile TTL
This commit is contained in:
parent
ed35201a22
commit
20c3d12331
|
@ -123,7 +123,7 @@ class APIClient:
|
||||||
else:
|
else:
|
||||||
return json.loads(http_response.read())
|
return json.loads(http_response.read())
|
||||||
|
|
||||||
@cached(cache=TTLCache(maxsize=1000, ttl=24 * 60 * 60))
|
@cached(cache=TTLCache(maxsize=1000, ttl=7 * 24 * 60 * 60))
|
||||||
def user(self, login: str) -> Any:
|
def user(self, login: str) -> Any:
|
||||||
"""
|
"""
|
||||||
Get information about a user.
|
Get information about a user.
|
||||||
|
|
|
@ -74,7 +74,7 @@ class APIClient:
|
||||||
else:
|
else:
|
||||||
return json.loads(http_response.read())
|
return json.loads(http_response.read())
|
||||||
|
|
||||||
@cached(cache=TTLCache(maxsize=1000, ttl=24 * 60 * 60))
|
@cached(cache=TTLCache(maxsize=1000, ttl=7 * 24 * 60 * 60))
|
||||||
def channel(self, channel_id: str) -> Any:
|
def channel(self, channel_id: str) -> Any:
|
||||||
"""
|
"""
|
||||||
Get information about a channel.
|
Get information about a channel.
|
||||||
|
|
Loading…
Reference in New Issue