session: api to get current cache size

This commit is contained in:
Robo 2016-01-14 15:01:54 +05:30
parent 88725d4fd7
commit 10e4698baa
3 changed files with 41 additions and 8 deletions

View file

@ -159,6 +159,13 @@ on complete.
Removes the cookies matching `url` and `name`, `callback` will called with
`callback()` on complete.
#### `ses.getCacheSize(callback)`
* `callback` Function
* `size` Integer - Cache size used in bytes.
Returns the session's current cache size.
#### `ses.clearCache(callback)`
* `callback` Function - Called when operation is done