mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2024-12-29 19:25:06 +00:00
Specify the max size of the lrucache for Python 3.7
This commit is contained in:
parent
b620e1048c
commit
780a428f9d
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class ApplicationMixin:
|
|||
return await cursor.fetchall()
|
||||
return None
|
||||
|
||||
@functools.lru_cache
|
||||
@functools.lru_cache(2)
|
||||
def _postgres_query_timeout(self,
|
||||
timeout: typing.Optional[int] = None) -> int:
|
||||
"""Return query timeout, either from the specified value or
|
||||
|
|
Loading…
Reference in a new issue