https://github.com/exhammer/hammer-backend-ecto
An Ecto backend for the Hammer rate-limiter
https://github.com/exhammer/hammer-backend-ecto
ecto elixir elixir-lang rate-limiter rate-limiting throttling
Last synced: 7 months ago
JSON representation
An Ecto backend for the Hammer rate-limiter
- Host: GitHub
- URL: https://github.com/exhammer/hammer-backend-ecto
- Owner: ExHammer
- License: mit
- Created: 2017-08-12T19:14:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T03:10:40.000Z (over 1 year ago)
- Last Synced: 2024-11-12T04:07:47.457Z (11 months ago)
- Topics: ecto, elixir, elixir-lang, rate-limiter, rate-limiting, throttling
- Language: Elixir
- Homepage: https://hexdocs.pm/hammer-backend-ecto
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Hammer.Backend.Ecto
[](https://github.com/ExHammer/hammer-backend-ecto/actions/workflows/ci.yml) [](https://hex.pm/packages/hammer_backend_ecto) [](https://hexdocs.pm/hammer_backend_ecto)
[](https://hex.pm/packages/hammer_backend_ecto)
[](https://github.com/ExHammer/hammer-backend-ecto/blob/master/LICENSE.md)Ecto backend for the [Hammer](https://github.com/ExHammer/hammer) rate-limiter.
## Installation
Hammer-backend-ecto
is [available in Hex](https://hex.pm/packages/hammer_backend_ecto), the package
can be installed by adding `hammer_backend_ecto` to your list of dependencies in `mix.exs`:```elixir
def deps do
[{:hammer_backend_ecto, "~> 0.1.0"}]
end
```## Usage
```elixir
worker(Hammer.Backend.Ecto, [[expiry_ms: 1000 * 60 * 2]]),
```See the [Hammer Tutorial](https://hexdocs.pm/hammer/tutorial.html#content) for more.
## Documentation
On hexdocs: [https://hexdocs.pm/hammer_backend_ecto/api-reference.html](https://hexdocs.pm/hammer_backend_ecto/api-reference.html)