TTL Indexes by juannyG · Pull Request #660 · mongomock/mongomock
added 10 commits
August 16, 2020 18:40* Boundary condition of expireAfterSeconds = 0 (effectively an instant expiry) * Non-integer values are ignored * Compound keys are ignored * Code consolidation and helper methods for better readability
expireAt is used an example in the docs for expireAfterSeconds=0, but is not an expected kwarg for index creation. expireAfterSeconds=0 was also already covered in the tests.
* Add TODO for get_current_timestamp and it's time usage * Use del instead of pop when removing documents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters