Least Frequently Used cache decorator, implementing :class:`faste.caches.LFUCache`

    :keyword max_size: max cache size

def lfu_cache(max_size=128):
    """
    Least Frequently Used cache decorator, implementing :class:`faste.caches.LFUCache`

    :keyword max_size: max cache size
    """

    def actual_decorator(func):
        return _cached_func(func, caches.LFUCache, max_size)

    return actual_decorator