next.js/test/e2e/app-dir/use-cache/no-store-handler.js
no-store-handler.js23 lines388 B
// @ts-check

/**
 * @type {import('next/dist/server/lib/cache-handlers/types').CacheHandler}
 */
const noStoreCacheHandler = {
  async get(_cacheKey, _softTags) {
    return undefined
  },

  async set(_cacheKey, _pendingEntry) {},

  async refreshTags() {},

  async getExpiration(_tags) {
    return Infinity
  },

  async updateTags(_tags) {},
}

module.exports = noStoreCacheHandler
Quest for Codev2.0.0
/
SIGN IN