need to ensure that the index is unique else duplicates can occur in the set() operation
Merge branch 'patches/mongodb-cache-duplicates' into MOODLE_26_STABLE-local