I am using AWS Secrets Manager for storing secrets and use it in one of my AWS Lambda functions. AWS also provides AWSSDK.SecretsManager.Caching library to improve performance and reduce costs. I also start using it with a long caching lifetime (1 day).
The next step is, when the secret value will be changed, I need to reset the cache immediately.
Now, my question is, how can Lambda be notified that it needs to reset the cache?