def make_scoped_cache(scope):
    'Create a new scoped cache.\n\n    In most cases the global cache should not be used directly but rather\n    with a scope depending on the module a cache is used for. This is\n    especially important when passing user-provided data as the cache key\n    to prevent reading other unrelated cache keys.\n    '
    return ScopedCache(cache, scope)
Create a new scoped cache.

In most cases the global cache should not be used directly but rather
with a scope depending on the module a cache is used for. This is
especially important when passing user-provided data as the cache key
to prevent reading other unrelated cache keys.
def make_scoped_cache(scope):
    'Create a new scoped cache.\n\n    In most cases the global cache should not be used directly but rather\n    with a scope depending on the module a cache is used for. This is\n    especially important when passing user-provided data as the cache key\n    to prevent reading other unrelated cache keys.\n    '
    return ScopedCache(cache, scope)