Skip to content

Commit 4ef005a

Browse files
committed
fix: add doc & dialyzer fixes
1 parent 11e963b commit 4ef005a

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

lib/cache/metrics.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
if Application.ensure_loaded(:prometheus_telemetry) === :ok do
22
defmodule Cache.Metrics do
33
@moduledoc """
4-
Add the following metrics for elixir_cache:
4+
Add the following metrics for elixir_cache into [prometheus_telmetery](https://hexdocs.pm/prometheus_telemetry),
5+
this module will only be included if the library is included:
56
67
Metrics included:
78
- `elixir_cache.cache.get.count`

lib/cache/sandbox.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ defmodule Cache.Sandbox do
333333
raise "Not Implemented"
334334
end
335335

336-
def smembers(_cache_name, _key, _opts \\ []) do
336+
def smembers(_cache_name, _key, _opts) do
337337
raise "Not Implemented"
338338
end
339339

340-
def sadd(_cache_name, _key, _value, _opts \\ []) do
340+
def sadd(_cache_name, _key, _value, _opts) do
341341
raise "Not Implemented"
342342
end
343343

mix.exs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defmodule ElixirCache.MixProject do
9595
"Changelog": ["CHANGELOG.md"]
9696
],
9797
groups_for_modules: [
98-
"Main": [Cache],
98+
"Main": [Cache, Cache.Metrics],
9999

100100
"Adapters": [
101101
Cache.Agent,
@@ -110,10 +110,7 @@ defmodule ElixirCache.MixProject do
110110
Cache.SandboxRegistry
111111
],
112112

113-
"Internal": [
114-
Cache.TermEncoder,
115-
Cache.Metrics
116-
]
113+
"Internal": [Cache.TermEncoder]
117114
]
118115
]
119116
end

0 commit comments

Comments
 (0)