Skip to content

Commit bd61e33

Browse files
Update typespecs for Cachex.put/4 and Cachex.put_many/3 (#421)
1 parent d7a0b09 commit bd61e33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/cachex.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ defmodule Cachex do
956956
{ :ok, 5000 }
957957
958958
"""
959-
@spec put(Cachex.t(), any, any, Keyword.t()) :: {status, boolean}
959+
@spec put(Cachex.t(), any, any, Keyword.t()) :: {status, any}
960960
def put(cache, key, value, options \\ []) when is_list(options),
961961
do: Router.route(cache, {:put, [key, value, options]})
962962

@@ -985,7 +985,7 @@ defmodule Cachex do
985985
{ :ok, 5000 }
986986
987987
"""
988-
@spec put_many(Cachex.t(), [{any, any}], Keyword.t()) :: {status, boolean}
988+
@spec put_many(Cachex.t(), [{any, any}], Keyword.t()) :: {status, any}
989989
def put_many(cache, pairs, options \\ [])
990990
when is_list(pairs) and is_list(options),
991991
do: Router.route(cache, {:put_many, [pairs, options]})

0 commit comments

Comments
 (0)