Function toCache

  • Returns a cache instance for the given flags.

    If the given flags are a cache instance, the cache instance will be returned. Otherwise a new cache instance will be created using createCache.

    See Cache from more information about using caches.

    Parameters

    Returns Cache