Skip to content

Commit

Permalink
Merge 4370865 into 8e3db08
Browse files Browse the repository at this point in the history
  • Loading branch information
lirazgoldenthal committed Aug 14, 2019
2 parents 8e3db08 + 4370865 commit 1f85409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aerospike_clj/client.clj
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@
(put db index set-name payload expiration conf))
(map vector indices set-names payloads expirations)))))

(defn set
(defn set-single
"`put` with a update policy"
([db index set-name data expiration]
(set db index set-name data expiration {}))
(set-single db index set-name data expiration {}))
([db index set-name data expiration conf]
(_put db
index
Expand Down
4 changes: 2 additions & 2 deletions test/aerospike_clj/client_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@
(deftest set-entry
(let [data (rand-int 1000)
update-data (rand-int 1000)]
(is (true? @(client/set *c* K _set data 100)))
(is (true? @(client/set-single *c* K _set data 100)))
(is (= data @(client/get-single-no-meta *c* K _set)))
(is (true? @(client/set *c* K _set update-data 100)))
(is (true? @(client/set-single *c* K _set update-data 100)))
(is (= update-data @(client/get-single-no-meta *c* K _set)))))


0 comments on commit 1f85409

Please sign in to comment.