def rr_cache(max_size=128):
    """
    Random Replacement cache decorator, implementing :class:`faste.caches.RRCache`

    :keyword int max_size: max cache size
    """

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

    return actual_decorator