Skip to content

Commit

Permalink
Adding Redis cache on systemUpdate API For Question
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento committed Jul 12, 2024
1 parent a841e38 commit 4641e1a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.sunbird.actors
import org.apache.commons.lang3.StringUtils
import org.sunbird.`object`.importer.{ImportConfig, ImportManager}
import org.sunbird.actor.core.BaseActor
import org.sunbird.cache.impl.RedisCache
import org.sunbird.common.dto.{Request, Response, ResponseHandler}
import org.sunbird.common.{DateUtils, Platform}
import org.sunbird.graph.OntologyEngineContext
Expand Down Expand Up @@ -92,6 +93,7 @@ class QuestionActor @Inject()(implicit oec: OntologyEngineContext) extends BaseA
def systemUpdate(request: Request): Future[Response] = {
val identifier = request.getContext.get("identifier").asInstanceOf[String]
RequestUtil.validateRequest(request)
RedisCache.delete(identifier)
val readReq = new Request(request)
val identifiers = new util.ArrayList[String](){{
add(identifier)
Expand Down

0 comments on commit 4641e1a

Please sign in to comment.