Source code for superduperdb.misc.compat

"""
Functions from later standard libraries not available in Python 3.8
"""

from functools import lru_cache

__all__ = ('cache',)


# Implements functools.cache from Python 3.9
[docs] def cache(user_function, /): return lru_cache(maxsize=None)(user_function)