in app/model/Instance.scala [155:161]
def get(id: String, awsCost: AWSCost)(implicit awsConn: AmazonConnection, cache: SyncCacheApi, wsClient: WSClient ): Future[Instance] =
cache.get[Instance](id) map (Future.successful(_)) getOrElse {
uncachedGet(id, awsCost) map { instance: Instance =>
cache.set(id, instance, Duration(30, SECONDS))
instance
}
}