Skip to content

Must persist counter across restarts

As a service provider
I need the service to persist the last known count So that users don't lose track of their counts after the service is restarted.

Details and Assumptions

  • We will use a Redis database
  • counter will be stored as name-value pair
Given i have incremented the control to 2
When i restart the service
Then the counter should still return 2