UNPKG

strapi-plugin-rest-cache

Version:
15 lines (10 loc) 278 B
'use strict'; async function etagLookup(cacheKey) { const store = strapi.plugin('rest-cache').service('cacheStore'); const etagCached = await store.get(`${cacheKey}_etag`); if (etagCached) { return etagCached; } return null; } module.exports = { etagLookup };