I’m trying to use
lru_cache with a
staticmethod, you just have to make sure that
lru_cache is directly on top of the callable function.
@staticmethod @lru_cache(maxsize=8) async def a_static_method(): ...
Hi I'm Hamilton and I wrote / built this! I like doing lots of things, but mostly I like to build (and then share those buildings). Some things I'm currently building: art, software, and prose. To stay up-to-date with my latest buildings, subscribe to my email list or follow one of my many other accounts. #buildit #shipit #justhamit