Skip to content

Commit

Permalink
Merge pull request #72 from noaccOS/fix-dirty_insert_new
Browse files Browse the repository at this point in the history
Fix `dirty_insert_new` acquiring lock
  • Loading branch information
sasa1977 authored Nov 22, 2023
2 parents a656fee + 104e0e8 commit b132019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/con_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ defmodule ConCache do
"""
@spec dirty_insert_new(t, key, store_value) :: :ok | {:error, :already_exists}
def dirty_insert_new(cache_id, key, value),
do: Operations.insert_new(Owner.cache(cache_id), key, value)
do: Operations.dirty_insert_new(Owner.cache(cache_id), key, value)

@doc """
Updates the item, or stores new item if it doesn't exist.
Expand Down

0 comments on commit b132019

Please sign in to comment.