Forum Discussion

fmensah's avatar
fmensah
Occasional Contributor
4 years ago
Solved

Connect to Redis to flush cash

I am trying to find a way to connect to Redis and flush the cache. Do somebody know how to do it ?
  • HimanshuTayal's avatar
    4 years ago

    fmensah :

     

    Have you able to connect to Redis successfully?

    If Yes then you can follow from step 2

    if Not then you can follow from Step 1

     

    1. Place the Redis jar(download from here) file under bin/ext folder of soapUI, then restart soapui

     

    2. Write the below groovy script Code:

    import redis.clients.jedis.Jedis
    
    Jedis jedis = new Jedis("Host")
    jedis.connect()
    jedis.flushDB()

     

    3. Run the script

     

    Hope it will resolve your issue