Popularity
2.3
Declining
Activity
0.0
Stable
12
4
0

Description

Haphazard is an ETS based plug for caching response body.

Monthly Downloads: 18
Programming language: Elixir
License: MIT License
Tags: Caching     ETS     Plug    
Latest version: v0.4.0

Haphazard alternatives and similar packages

Based on the "Caching" category.
Alternatively, view Haphazard alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Haphazard or a related project?

Add another 'Caching' Package

README

Haphazard Build Status Coverage Status hex.pm version Deps Status [Hex.pm](LICENSE)

Haphazard is an ETS based plug for caching response body. Check the Online Documentation

Installation

Add haphazard to your list of dependencies in mix.exs:

def deps do
  [{:haphazard, "~> 0.4.0"}]
end

put it in applications

applications: [:logger, ..., :haphazard]

Usage

Setup in your plug router:

plug Haphazard.Plug

Additional configurations (optional):

plug Haphazard.Plug,
  methods: ~w(GET HEAD),
  path: ~r/\/myroute/,
  ttl: 60_000,
  enabled: true

The additional configurations reflect the default values.

License

Source code is released under MIT License. Check [LICENSE](LICENSE) for more information.


*Note that all licence references and agreements mentioned in the Haphazard README section above are relevant to that project's source code only.