couchbase / go-couchbase

Couchbase client in Go
https://godoc.org/github.com/couchbase/go-couchbase
MIT License
321 stars 92 forks source link

Add ability to update expiry on get #60

Open adamcfraser opened 9 years ago

adamcfraser commented 9 years ago

Sync Gateway has a requirement to be able to update the expiry on a get. I think it's reasonable to add this as a separate API (GetAndTouch), as opposed to modifying the existing Get.