mirror of https://github.com/zulip/zulip.git
9d448e73d2
`cachify` is essentially caching the return value of a function using only the non-keyword-only arguments as the key. The use case of the function in the backend can be sufficiently covered by `functools.lru_cache` as an unbound cache. There is no signficant difference apart from `cachify` overlooking keyword-only arguments, and `functools.lru_cache` being conveniently typed. Signed-off-by: Zixuan James Li <359101898@qq.com> |
||
---|---|---|
.. | ||
__init__.py | ||
application.py | ||
autoreload.py | ||
descriptors.py | ||
django_api.py | ||
event_queue.py | ||
exceptions.py | ||
handlers.py | ||
ioloop_logging.py | ||
sharding.py | ||
views.py |