session: api to get current cache size
This commit is contained in:
parent
88725d4fd7
commit
10e4698baa
3 changed files with 41 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue