Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (21 sloc) 1012 Bytes

Forcing S3 API Calls

All of Boto's S3 classes and functions are wrapped in MimicDB functions to provide access to the local data instead of the S3 API. This means that changes to buckets and keys on S3 (outside of MimicDB), won't be reflected in MimicDB unless the API call is forced.

Forcing an S3 API call also stores the response in MimicDB, so the forced call only has to happen once to retrieve new changes.

In most cases, passing force=True to the function will cause the S3 API call to be executed.

Warning

Bucket.__iter__ can not have arguments passed to it, so it defaults to not calling the API.

The following functions can be forced: