@renuu Try the DistributedMapCacheClient Controller Service, not Redis (unless you have a redis system you can use). If you use the other one you can set it to localhost and work within NiFi. After creating the DistributedMapCacheClient be sure to click + and add DistributedMapCacheServer to run on the same port. Here are some screen shots of my sample:
DetectDuplicate:

DistributedMapCacheClient:

DistributedMapCacheServer:

Additionally, when working a demo flow, be sure to always route the other relationships during testing (detectDuplicate). You do this so when its running you can see the duplicate or non-duplicate outputs. If you run the flow, and it doesn't work as expected you will see where it went, then can adjust. For example, below is how I use an output port to hold all the routes for InvokeHttp. Later when I know it works, I will auto terminate what I don't need, and route what I do need.

Last but not least, spend some time in the community doing research to learn from other examples for your Use Case by searching the community:
https://community.cloudera.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=includeTkbs,location&include_tkbs=true&location=tkb-board:CommunityArticles&q=distributedmapcache
If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.
Thanks,
Steven @ DFHZ