Skip to content

Commit

Permalink
Add temp debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
VeljkoMaksimovic committed Dec 26, 2022
1 parent 728271a commit a89d4ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/cacheman.ex
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ defmodule Cacheman do
end

def handle_call({:put_batch, key_value_pairs, put_opts}, _from, opts) do
IO.puts("OPTS:")
IO.inspect(put_opts)

response =
apply(opts.backend_module, :put_batch, [
opts.backend_pid,
Expand Down
6 changes: 5 additions & 1 deletion lib/cacheman/backend/redis.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ defmodule Cacheman.Backend.Redis do
end)

:poolboy.transaction(conn, fn c ->
Redix.pipeline(c, list_of_commands, timeout: opts[:timeout])
IO.puts("Redis timeout")
IO.inspect(opts[:timeout])
ret = Redix.pipeline(c, list_of_commands, timeout: opts[:timeout])
IO.puts("REDIS RET")
IO.inspect(ret)
end)
end

Expand Down

0 comments on commit a89d4ac

Please sign in to comment.