Skip to content

Commit

Permalink
Merge pull request #21 from sirikid/feature/fix-specs
Browse files Browse the repository at this point in the history
Fix type erl_cache:cache_stat/0
  • Loading branch information
nalundgaard authored Mar 16, 2022
2 parents ac65b03 + 8a28d17 commit 72a21e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/erl_cache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@
-type cache_opts()::[cache_get_opt() | cache_set_opt() | cache_evict_opt()
| {evict_interval, evict_interval()} | cache_server_opt()].

-type cache_stat()::{memory, pos_integer()} | {size, non_neg_integer()} | {hit, non_neg_integer()} |
{evict, non_neg_integer()} | {overdue, non_neg_integer()} |
{miss, non_neg_integer()}.
-type cache_stat()::{memory, pos_integer()} | {entries, non_neg_integer()} |
{hit, non_neg_integer()} | {evict, non_neg_integer()} |
{overdue, non_neg_integer()} | {miss, non_neg_integer()} |
{set, non_neg_integer()} | {total_ops, non_neg_integer()}.
-type cache_stats()::[cache_stat()].

-type config_key()::validity | evict | refresh_callback | wait_for_refresh | max_cache_size
Expand Down Expand Up @@ -477,4 +478,3 @@ get_name_defaults(Name) ->
[{Name, Opts}] -> Opts;
[] -> undefined
end.

0 comments on commit 72a21e0

Please sign in to comment.