Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Product Feature Requests

Fetch TTL of key

1 reply [Last post]
  • Login or register to post comments
Sat, 01/19/2013 - 10:36
OZ
Offline
Joined: 01/18/2013
Groups: None

Please, make some method to retrieve TTL of key.
I need this info to avoid dog-pile effect.
In pseudo-code:
x = get(key, ttl)
if ((ttl - current_time) < 5)
{
if (lock(key))
{
set(key, value)
unlock(key);
}
}

Top
  • Login or register to post comments
Tue, 02/19/2013 - 15:52
kneeoh
Offline
Joined: 02/19/2013
Groups: None

I too, need the ability to grab the ttl from the meta data. I wonder if I can do this with a view...

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker