Skip to content

Commit

Permalink
fix: Format gat commands
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin committed Dec 19, 2024
1 parent b1ea804 commit 1e84858
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ module Utils
'multi_add' => 'addq',
'multi_replace' => 'replaceq',
'multi_delete' => 'deleteq',
'touch' => 'touch'
'touch' => 'touch',
'gat' => 'gat'
# 'sasl_authentication' => 'auth_negotiation',
# 'sasl_authentication' => 'auth_request',
}.freeze
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@
_(span.name).must_equal 'set'
_(span.attributes['db.statement']).must_equal 'set ?'
end

it 'supports gat' do
dalli.gat('foo')

_(exporter.finished_spans.size).must_equal 1
_(span.name).must_equal 'gat'
_(span.attributes['db.statement']).must_equal 'gat foo 0'
end
end

# Dalli 3.x has different behavior than 2.x versions and attempts to retry on network errors
Expand Down

0 comments on commit 1e84858

Please sign in to comment.