uk.gov.hmrc.cache

repository

package repository

Visibility
  1. Public
  2. All

Type Members

  1. class CacheMongoRepository extends ReactiveRepository[Cache, Id] with CacheRepository with TTLIndexing[Cache]

  2. trait CacheRepository extends Repository[Cache, Id]

  3. sealed case class DeleteIndex(collection: String, index: String) extends Command[Int] with Product with Serializable

    20-May-2014 The following code is a workaround for a bug we found in reactivemongo indexesManager.delete() method.

    20-May-2014 The following code is a workaround for a bug we found in reactivemongo indexesManager.delete() method. The issue only happens with the current version of mongodb (2.6.1) but not with the version the we have on higher environments including production (2.4.8). The patch is intentionally left here so that it can be applied again if mongodb is upgraded and the bug is not fixed in reactivemongo. In which case, the call to indexesManager.delete() in the ensureIndexes() method of this class should be replaced with the following:

    deleted <- collection.db.command(DeleteIndex(collection.name, idxToUpdate.get.eventualName))

  4. trait TTLIndexing[A] extends AnyRef

Value Members

  1. object CacheRepository extends MongoDbConnection

Ungrouped