KeyValue icon

KeyValue

Store and retrieve key-value pairs on the filesystem

Actions20

Counter → Reset

AI-generated

Summary

Reset an existing named counter to the configured value. The counter is stored as a plain text file under counters/; reset overwrites that file and returns the counter name and new value.

Inputs

  • Counter Name (required) — Name of the counter to reset.
  • Reset To — Value to assign to the counter. Defaults to 0.

Output shape

One item per input item, containing counter and value.

Fails if the named counter does not already exist; Reset does not create it.

Links

Discussion