Skip to content

Commit

Permalink
Merge pull request #124 from full-stack-biz/bopm-patch-2
Browse files Browse the repository at this point in the history
Dump values in LiteKd UniqueList methods
  • Loading branch information
oldmoe authored Jul 21, 2024
2 parents 86af0e0 + d5c712c commit f36fd86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/litestack/litekd/unique_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ class UniqueList < List

def push(member)
conn.transaction do
conn.delete_composite_member_by_value(@key, member)
conn.rpush_composite_member(@key, member)
conn.delete_composite_member_by_value(@key, dump(member))
conn.rpush_composite_member(@key, dump(member))
_after_change
end
end

def lpush(member)
conn.transaction do
conn.delete_composite_member_by_value(@key, member)
conn.lpush_composite_member(@key, member)
conn.delete_composite_member_by_value(@key, dump(member))
conn.lpush_composite_member(@key, dump(member))
_after_change
end
end
Expand Down

0 comments on commit f36fd86

Please sign in to comment.