Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Couchbase, dalli gem, rails and sessions

2 replies [Last post]
  • Login or register to post comments
Tue, 10/30/2012 - 13:22
MrMichaelJames
Offline
Joined: 10/30/2012
Groups: None

I'm trying to get the dalli gem talking to a couchbase server for session storage. Right now I have in my session_store.rb:

Rails.application.config.session_store :dalli_store, :memcache_server => ['1.1.1.1'], :password => "xxxxx", :namespace => "xxxx", :expire_after => 5.days

There are multiple buckets setup on this couchbase server and I have one assigned to me to use. How do I tell dalli to talk to it? Right now everything is going to the default bucket.

Top
  • Login or register to post comments
Tue, 10/30/2012 - 13:35
MrMichaelJames
Offline
Joined: 10/30/2012
Groups: None

Geez, never mind this. I figured it out. The :username for dalli is the bucketname

Top
  • Login or register to post comments
Sat, 11/17/2012 - 08:46
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

couchbase gem also support rails/rack session store

https://github.com/couchbase/couchbase-ruby-client/blob/master/lib/actio...

__________________

Find me on FreeNode IRC in #libcouchbase channel

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