samagra-comms/uci-apis

Invalidate cache on transaction layer on bot update

Closed this issue · 4 comments

Transaction layer bot cache needs to be invalidated on bot update so that there is no inconsistent data on the transaction layer after an update occurs.

@pankajjangid05 please attach the curl for invalidating the cache on transaction layer.

API for removing caffeine cache from the transaction layer :

curl --location --request DELETE 'http://localhost:9080/cache/caffeine/removeAll' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Authorization_Key'

Currently, this API is working but we are not sending any success or fail response from the transaction layer. So I need to add the success or fail response in this API.

Hey @chinmoy12c

Please review these PRs:
Utils
Inbound

PR has been raised.