File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2020# if you want to provide default values for your application for
2121# 3rd-party users, it should be done in your "mix.exs" file.
2222
23- config :use_plug_proxy ,
23+ config :mu_cache ,
2424 log_cache_keys: CH . system_boolean ( "LOG_CACHE_KEYS" ) ,
2525 log_clear_keys: CH . system_boolean ( "LOG_CLEAR_KEYS" )
2626
Original file line number Diff line number Diff line change 11alias Cache.Registry , as: Cache
22
3- defmodule UsePlugProxy do
3+ defmodule MuCachePlug do
44 @ moduledoc """
55 Router for receiving cache requests.
66 """
@@ -49,7 +49,7 @@ defmodule UsePlugProxy do
4949 end
5050
5151 defp maybe_log_clear_keys ( clear_keys ) do
52- if Application . get_env ( :use_plug_proxy , :log_clear_keys ) do
52+ if Application . get_env ( :mu_cache , :log_clear_keys ) do
5353 # credo:disable-for-next-line Credo.Check.Warning.IoInspect
5454 IO . inspect ( clear_keys , label: "Clear keys" )
5555 end
@@ -58,7 +58,7 @@ defmodule UsePlugProxy do
5858 end
5959
6060 defp maybe_log_cache_keys ( cache_keys ) do
61- if Application . get_env ( :use_plug_proxy , :log_cache_keys ) do
61+ if Application . get_env ( :mu_cache , :log_cache_keys ) do
6262 # credo:disable-for-next-line Credo.Check.Warning.IoInspect
6363 IO . inspect ( cache_keys , label: "Cache keys" )
6464 end
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ defmodule MuElixirCache do
1111 { Cache.Registry , % { } } ,
1212 { Plug.Cowboy ,
1313 scheme: :http ,
14- plug: UsePlugProxy ,
14+ plug: MuCachePlug ,
1515 options: [
1616 port: 80 ,
1717 protocol_options: [ max_header_value_length: 409_600_000 , max_keepalive: 1000 ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ defmodule UsePlugProxy.Mixfile do
33
44 def project do
55 [
6- app: :use_plug_proxy ,
6+ app: :mu_cache ,
77 version: "2.0.2" ,
88 elixir: "~> 1.5" ,
99 build_embedded: Mix . env ( ) == :prod ,
You can’t perform that action at this time.
0 commit comments