forked from AkkomaGang/akkoma
Run
This commit is contained in:
parent
af4338da0c
commit
e572786dad
1 changed files with 1 additions and 0 deletions
|
@ -492,6 +492,7 @@ def get_cached_by_id(id) do
|
||||||
|
|
||||||
def get_cached_by_nickname(nickname) do
|
def get_cached_by_nickname(nickname) do
|
||||||
key = "nickname:#{nickname}"
|
key = "nickname:#{nickname}"
|
||||||
|
|
||||||
Cachex.fetch!(:user_cache, key, fn ->
|
Cachex.fetch!(:user_cache, key, fn ->
|
||||||
user_result = get_or_fetch_by_nickname(nickname)
|
user_result = get_or_fetch_by_nickname(nickname)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue