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

Ability to extend a stored item's validity period without calling .Store() again

3 replies [Last post]
  • Login or register to post comments
Wed, 10/06/2010 - 15:42
Joseph
Offline
Joined: 10/05/2010
Groups: None

Not sure if it's an Enyim client or Memcache/Membase issue - with the Enyim Membase client when I just want to extend the lifespan of a cached object I have to retrieve the object and then store it back with a new expiry time. Is there a way to just re-set the expiry time by passing the client the object's ID?

Joseph

Top
  • Login or register to post comments
Wed, 10/06/2010 - 16:07
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

It's actually a memcache issue and is inherited into all things memcache (Enyim client as well as our Membase server). There has been much discussion about adding a "touch" operation to the memcache protocol to achieve this specific use case. Your request is well received, I will bring it to the attention of our product management.

For the time being, re-storing the item is the only current way to extend the expiry time. If you're concerned about concurrent access to it, you can use the CAS operation to make sure that no changes happen while the item is in flight.

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
Wed, 10/06/2010 - 16:20
Joseph
Offline
Joined: 10/05/2010
Groups: None

Looking at the IIS Session State Store Provider implementation I'm just concerned that it's inefficient to have to re-store the session objects on every page view. For websites with high volume of traffic (which is what memcached is supposed to help) it would become a problem.

Top
  • Login or register to post comments
Wed, 10/06/2010 - 16:29
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Yes, I definitely see the use case.

I would say that for now, it will be best for you to monitor and tune the expiration time of your keys high enough to minimize the number of times an active user's session expires and low enough to prevent old sessions from being accessed.

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

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