← Back to CacheStorage domain
CacheStorage.requestEntries
Requests data from cache.
Domain: CacheStorage
experimental
Parameters
| Name | Type | Description |
cacheId | CacheId | ID of cache to get entries from. |
skipCount (optional) | integer | Number of records to skip. |
pageSize (optional) | integer | Number of records to fetch. |
pathFilter (optional) | string | If present, only return the entries containing this substring in the path |
Returns
| Name | Type | Description |
cacheDataEntries | array | Array of object store data entries. |
returnCount | number | Count 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}