Skip to content

Commit

Permalink
feat(RepositoryCache): No hashing in cache key (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaylaBrady authored Nov 25, 2024
1 parent 1f01c6e commit dcb12c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/mbta_v3_api/repository_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ defmodule MBTAV3API.RepositoryCache do
"#{mod}|#{fun}"
end

def generate(mod, fun, [arg]) do
"#{mod}|#{fun}|#{:erlang.phash2(arg)}"
end

def generate(mod, fun, args) do
"#{mod}|#{fun}|#{:erlang.phash2(args)}"
"#{mod}|#{fun}|#{inspect(args)}"
end
end

0 comments on commit dcb12c2

Please sign in to comment.