@Suresh Thakur, Kirti If I understand correctly, you are trying to cache values from CosmosDB to a Redis store, which your function app later uses. Assuming that is correct, I would try to design your solution in a different way.
Instead of having a timer-based sync function, you should move this functionality into the same service (like an API or batch job) that feeds data into CosmosDB instead. Whenever there is an update to CosmosDB, update the cache as well, either synchronously in the same function or asynchronously by using a separate message triggered function via a Message Broker like Azure Service Bus.
Or another approach would be to have your function app that processes the transaction to get the value from CosmosDB and add it to the cache when not present. You can either set a TTS on the cache value or invalidate it when CosmosDB receives an update, depending on how critical the latest message having is.