How do I invoke flush()?



flush() seems to be implemented in BucketManager, but I cannot seem to find a way to instantiate BucketManager. I see in the source (lib/bucketmgr.js) and the docs that it’s a private function. So how do I access it? The documentation is quite sparse unfortunately.


Flush Through node.js or RESTful endpoint

Hey Tito,

You can instantiate a BucketManager by invoking the manager() method of your bucket object. You can then call flush() assuming you have flushing enabled on your bucket configuration.

Cheers, Brett