← Back to CacheStorage domain

CacheStorage.requestEntries

Requests data from cache.

Domain: CacheStorage experimental

Parameters

NameTypeDescription
cacheIdCacheIdID of cache to get entries from.
skipCount (optional)integerNumber of records to skip.
pageSize (optional)integerNumber of records to fetch.
pathFilter (optional)stringIf present, only return the entries containing this substring in the path

Returns

NameTypeDescription
cacheDataEntriesarrayArray of object store data entries.
returnCountnumberCount of returned entries from this storage. If pathFilter is empty, it is the count of all entries from this storage.

Example Request

{
  "id": 1,
  "method": "CacheStorage.requestEntries",
  "params": {
    "cacheId": "cacheId-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "cacheDataEntries": [],
    "returnCount": 1.0
  }
}

Usage in Node.js

const result = await send('CacheStorage.requestEntries', {"cacheId": "cacheId-value"});
console.log(result);
// {"cacheDataEntries": [], "returnCount": 1.0}