Add
compare_and_swap
method to Base store definition for atomic operations.This allows limiters to ensure there are no race-conditions by having the stores provide atomic interfaces. See also
~rush.stores.base.BaseStore
.
- Update built-in limiters to rely on
compare_and_swap
method from storage backends.
- Add a decorator in
rush.contrib.decorator
written by Jude188 for potentially easier use of the library. See also~rush.contrib.decorator.ThrottleDecorator
.