Document expiration / TTL

88 views
Skip to first unread message

Justin

unread,
Mar 10, 2015, 11:50:19 AM3/10/15
to mobile-c...@googlegroups.com
Classy Couchbase,

 I am trying to set the document expiration value on CBL for Android.  However, I can't seem to find a way to do it.  How do I set the expiration value?

Thanks, 

-Justin

Jens Alfke

unread,
Mar 10, 2015, 2:32:49 PM3/10/15
to mobile-c...@googlegroups.com

On Mar 10, 2015, at 8:50 AM, Justin <crypt...@gmail.com> wrote:

 I am trying to set the document expiration value on CBL for Android.  However, I can't seem to find a way to do it.  How do I set the expiration value?

Document expiration is a Couchbase Server feature; it's not in Couchbase Lite. (Historically, it comes from the memcached ancestry, not from CouchDB.)

In general, don’t expect the two to have the same features. They’re both JSON-based document databases with map/reduce, but beyond that they have a lot of differences.

—Jens

Justin

unread,
Mar 10, 2015, 2:37:24 PM3/10/15
to mobile-c...@googlegroups.com
Got it. Thank you Jens :)

-Justin

Yonah Forst

unread,
Jun 2, 2015, 10:25:54 AM6/2/15
to mobile-c...@googlegroups.com
Hey Jens, 

Is there anyway to use the Couchbase Server TTL feature with CBL via sync_gateway? Can I set a default TTL on the server which would be applied to documents replicated over from CBL?

Jens Alfke

unread,
Jun 2, 2015, 1:12:03 PM6/2/15
to mobile-c...@googlegroups.com

On Jun 2, 2015, at 7:25 AM, Yonah Forst <yonah...@gmail.com> wrote:

Is there anyway to use the Couchbase Server TTL feature with CBL via sync_gateway? Can I set a default TTL on the server which would be applied to documents replicated over from CBL?

No. TTL is not a feature of the Couchbase Mobile document model.

—Jens
Reply all
Reply to author
Forward
0 new messages