-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not working, but simple Cache::Memcached request does #1
Comments
Hi, Dale. Could you send me a stripped down application that demonstrates the problem? I'm going to ship a new Dancer2::Session::Memcached that fixes some test bugs, but I don't think they affect your case. |
Thanks David Here's an easy to install package to create the same environment I'm using. wget http://filegooi.co.za/get2/984a80022b945e6981ac0f7bb8b82409/dancer2-json-vs-memcached-sessions.tar.gz |
Sorry, there's a minor typo in the install script. This fixes it: |
Here are details on Tokyo Tyrant's protocols: http://fallabs.com/tokyotyrant/spex.html#protocol More specifically, it states, about Memcached:
|
Thanks. I can't get TT running on my Mac, so I'm getting a Linux VM in Have you tried regular memcached, not TT? It would be nice to know if it's David On Wed, Apr 10, 2013 at 7:13 PM, Dale Gallagher [email protected]:
David Golden [email protected] |
No, I haven't tried stock standard memcached. I doubt it's TT, as per my regular test script in that bundle, using Cache::Memcached works as expected. Are there perhaps certain commands other than those supported by TT, above, required/used? I'll give vanilla memcached a whirl to test compatibility. |
Ok, some progress. I installed memcached and tested my demo app with it, using both ascii and binary proto and it works! The confusing thing though, is how the module Cache::Memcached actually works when speaking memcached proto to TT and Dancer2::Session::Memcached is using it! Any idea? This bug is hiding. False alarm, two memcached instances were running. D2:S:M only runs when memcached is set to use the ascii protocol. Errors like the following occur when using binary protocol: Invalid magic: 67 |
That's really strange. All the plugin does is dispatch to the David On Fri, Apr 12, 2013 at 7:42 PM, Dale Gallagher [email protected]:
David Golden [email protected] |
Hi David
I'm unable to get this module to work with Dancer2.
This Perl code read/writes to my Memcached instance perfectly:
My Dancer2 app sessions work fine with:
or
but NOT with:
I ran both the test code above and the Dancer2 app as the same user, so definitely no permission issues there.
How can I debug this? I see Dancer2::Session::Memcached uses the same module as my stand-alone test script does (Cache::Memcached) so wondering why it doesn't work?
Dancer2 0.03
Dancer2::Session::Memcached 0.002
You mentioned that in D2, session destruction should be done using
context->destroy_session
Am I also supposed to use different session syntax when setting and getting session variables, when using this session module?
I'm using:
The text was updated successfully, but these errors were encountered: