TTLIndexHelper Class
Used to change the TTL index on a collection without elevated permissions
Constructor
TTLIndexHelper
()
Methods
ensureIndex
(
-
procedure -
cb
Parameters:
-
procedureObject -
cbFunction
hasCorrectTTLIndex
(
-
collection -
indexName -
expectedExpiry -
cb
Retrieves and compares the expiry of a TTL index on the specified collection to the expiry provided. Calls back with TRUE if and only if the index is found the expiries match.
Parameters:
-
collectionString -
indexNameString -
expectedExpiryInteger -
cbFunction
