aws / aws-record-ruby

Official repository for the aws-record gem, an abstraction for Amazon DynamoDB.
Apache License 2.0
321 stars 42 forks source link

Atomic counter #123

Closed jterapin closed 2 years ago

jterapin commented 2 years ago

Issue #, if available:

114

Description of changes: Atomic counter are an integer-type attribute that is incremented, unconditionally, without interfering with other write requests. The numeric value increments each time you call increment_<attr>!. If a specific numeric value are passed in the call, the attribute will increment by that value.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.