From 423d4ef58132a9dd5138dc5b6495958a3f84a420 Mon Sep 17 00:00:00 2001 From: KaylaBrady <31781298+KaylaBrady@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:53:15 -0500 Subject: [PATCH] feat(RepositoryCache): No hashing in cache key --- lib/mbta_v3_api/repository_cache.ex | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/mbta_v3_api/repository_cache.ex b/lib/mbta_v3_api/repository_cache.ex index 7a362c1..a9a1154 100644 --- a/lib/mbta_v3_api/repository_cache.ex +++ b/lib/mbta_v3_api/repository_cache.ex @@ -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