aws / aws-sdk-ruby-record

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

Atomic counter #123

Closed jterapin closed 1 year ago

jterapin commented 1 year 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.