docs(webframe): add interface instruction

This commit is contained in:
OJ Kwon 2018-01-25 16:02:33 -08:00
parent d172e29270
commit 004c9427eb
No known key found for this signature in database
GPG key ID: 6C23A45602A44DA6

View file

@ -221,4 +221,13 @@ in your app has occurred that makes you think your page is actually using less
memory (i.e. you have navigated from a super heavy page to a mostly empty one,
and intend to stay there).
### `webFrame.setCacheCapacity(capacity)`
* `capacity` Integer
Set the capacity of resource cache for the renderer process in bytes
Note if current cached resource size is larger than newly specified capacity, Electron
will schedule to prune cached resources until it reaches below new capacity.
[spellchecker]: https://github.com/atom/node-spellchecker