Open Tunduk opened 11 months ago
That's a good idea and any contribution is highly welcome.
WRT implementation: the extension has no internal knowledge about the characteristics of the store, and it should stay that way in order to make it replaceable. Thus having a context-specific expiration might be difficult - at least on stub-configuration level. For the global configuration, I'm looking for a way to make this fit nicely into the architecture. Alternatively, as backup: with the latest update you can delete multiple contexts. So creating an artificial endpoint to remove all contexts might be a mitigation as well:
"serveEventListeners": [
{
"name": "deleteState",
"parameters": {
"contextsMatching": ".*"
}
}
]
Proposal
In my case of usage, 60 min is too long. We run wiremock in k8s with pretty narrow memory limits and we have memory leaks. I fixed my problem with deleteState but it would be great to have the ability to control state expiration. I think 2 kinds of settings are needed:
Of course, I would like to help with it. Let me know if I can open a PR
References
No response