This module creates and maintains named counters in a database. It has a simple interface, with methods to increment and decrement the counter by one, and a method for retrieving the value. It supports operator overloading for increment ( ), decrement (--) and stringification ("").
It should perform well in persistent environments, since it uses the connect_cached and prepare_cached methods of DBI.
The biggest advantage over its main inspiration - File::CounterFile - is that it allows distributed, concurrent access to the counters and isn't tied to a single file system.
Connection settings can be set in the constructor. The table name is configurable, but the column names are currently hard-coded to counter_id and value.