Skip to content

Commit

Permalink
[CLIENT-1752] Add 'EXISTS' return type for CDT read operations
Browse files Browse the repository at this point in the history
Adds `MapReturnType::EXISTS` and `ListReturnType::EXISTS`
  • Loading branch information
khaf committed Oct 25, 2022
1 parent 71db789 commit f5d52df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/aerospike/cdt/list_return_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ module ListReturnType
# Return value for single key read and value list for range read.
VALUE = 7

##
# Return true if count > 0.
EXISTS = 13

##
# :private
#
Expand Down
4 changes: 4 additions & 0 deletions lib/aerospike/cdt/map_return_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ module MapReturnType
# Return key/value items.
KEY_VALUE = 8

##
# Return true if count > 0.
EXISTS = 13

##
# Default return type: NONE
DEFAULT_RETURN_TYPE = NONE
Expand Down

0 comments on commit f5d52df

Please sign in to comment.