dynamoid
https://github.com/veraticus/dynamoid
Ruby ORM for Amazon's DynamoDB
Gitlab::GithubImport::Caching.write_if_greater
Sets a key to the given integer but only if the existing value is smaller than the given value. This method uses a Lua script to ensure the read and write are atomic. raw_key - The key to set. value - The new value for the key. timeout - The key timeout in seconds. Returns true when the key was overwritten, false otherwise.
Edit
git clone [email protected]:veraticus/dynamoid.git
cd dynamoid
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--GithubImport--Caching-write_if_greater-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::GithubImport::Caching.write_if_greater"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--GithubImport--Caching-write_if_greater-for-pr
hub pull-request
# Celebrate!