reactivecouchbase-rs-core icon indicating copy to clipboard operation
reactivecouchbase-rs-core copied to clipboard

getAndLock with cas

Open ruioliveiras opened this issue 8 years ago • 4 comments
trafficstars

Hi, currently i'm updating from the 0.5 version the version 1. Was a very good idea to give direct access to the couchbase with the underlyingBucket :+1:

Since the unlock method receive key: String, cas: Long, and getAndLock are not returning that cas. How can I unlock a key ?

Thank you.

ruioliveiras avatar Nov 07 '17 16:11 ruioliveiras

Also there are any equivalent thing to bucket.atomicUpdate ?

Thank you

ruioliveiras avatar Nov 07 '17 17:11 ruioliveiras

an other question, you explain here: http://reactivecouchbase.org/#what-if-i-want-to-use-a-json-lib-other-than-play-json- There are any integrated way of doing it using the json from play ?

I appreciate your collaboration. Thank you.

ruioliveiras avatar Nov 07 '17 17:11 ruioliveiras

Would you be open to do a release, if we do a pull request?

@mathieuancelin

ruioliveiras avatar Nov 17 '17 09:11 ruioliveiras

Hi @ruioliveiras

Sorry I didn't saw your message before today.

About cas stuff, the API seems broken indeed and I'll be happy to accept your PR :)

About Play Json, it's the standard way provided by reactive-couchbase, just import the following

import org.reactivecouchbase.rs.scaladsl.json._
import play.api.libs.json._

mathieuancelin avatar Nov 17 '17 10:11 mathieuancelin