Packages

A general throttle utility. Mainly used to throttle inbound or outbound requests.

Current section

Files

Jump to
throttle lib cache.ex
Raw

lib/cache.ex

defmodule Throttle.Cache do
alias Throttle.Config
alias Throttle.Request
@adapter Config.get(:cache_adapter, Throttle.Cache.Redis)
def get_count(%Request{} = request) do
@adapter.get_count(request)
end
end