TTLIndexHelper Class
Used to change the TTL index on a collection without elevated permissions
Constructor
TTLIndexHelper
()
Methods
ensureIndex
(
-
procedure
-
cb
Parameters:
-
procedure
Object -
cb
Function
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:
-
collection
String -
indexName
String -
expectedExpiry
Integer -
cb
Function