Skip to content

Commit

Permalink
Update test/example_cache.erl
Browse files Browse the repository at this point in the history
Add type specs and appease elvis.
  • Loading branch information
yurrriq committed Nov 29, 2016
1 parent b73c37f commit 1461b82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/example_cache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
-behaviour(elli_cache).
-export([get_modified/2, get_size/2]).

-spec get_modified(elli:req(), elli_cache:config()) -> calendar:datetime().
get_modified(_Req, _Args) ->
%% calendar:universal_time().
{{2016,11,15},{0,31,7}}.
{{2016, 11, 15}, {0, 31, 7}}.

-spec get_size(elli:req(), elli_cache:config()) -> non_neg_integer().
get_size(_Req, _Args) ->
%% rand:uniform(65536).
42.

0 comments on commit 1461b82

Please sign in to comment.