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] with AtomicUpdate[Cache] with BSONBuilderHelpers

2. #### trait CacheRepository extends Repository[Cache, Id] with UniqueIndexViolationRecovery

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

5. #### trait UniqueIndexViolationRecovery extends AnyRef

### Value Members

1. #### object CacheRepository extends MongoDbConnection

### Ungrouped