Hi
@Han Wang I see you have posted a
separate question where Tom has answered you. Just for completeness - In WireMock Cloud, state is cache like so isn’t removed on a time basis, but is limited to 100k keys, beyond which they’re ejected on an LRU basis. Also, state is kept in temporary storage (cache) and cleared when e.g. a deployment happens.
The design of the state feature is intended for short-lived stateful flows, so e.g. where a payment goes through several states during the course of executing a test case. At the end of the test case you’d either reset the state, or if it was associated with a data point created uniquely just let it be LRU’d out so that next time the test is run it’s from the base state.