• Clean cache by baseUrl and list of urls to keep in cache

    Parameters

    • req: RequestInfo | URL

      start of url to clean

    • excludeUrls: string[]

      list of full urls to keep in cache

    • cacheName: string = 'default'

      name of cache to clean (default: 'default')

    Returns Promise<number>

    const bingImageList: string[] = await getBingImageUrlList();
    await cacheCleanup('https://bing.com/th', bingImageList);

    v0.0.1