Skip to content
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

So close to working with memcache #24

Open
robwilkerson opened this issue Jan 15, 2016 · 1 comment
Open

So close to working with memcache #24

robwilkerson opened this issue Jan 15, 2016 · 1 comment

Comments

@robwilkerson
Copy link

I have a project where this module would be pretty much perfect, but I'm using Memcache instead of Redis (via https://github.com/3rd-Eden/memcached). As far as I can tell, it should be trivial to adapt since the Memcache module also has get() and set() functions. I'd love to submit a pull request if it's something you have any interest in adding, but...

I'm confused by the db.set() call. Specifically the 3rd parameter: 'PX'. What is that? I haven't used the redis module, but looking at the docs, I don't see where that parameter is necessary or even allowed. I'm sure I'm missing something, but that param keeps the module from working with memcache.

Can you help me understand what's happening there so I know how to proceed (again, assuming memcache compatibility is of interest to you).

Thanks.

@maxnachlinger
Copy link

I'm sure by now you've figured it out :) but in case you haven't, PX is an expiration in milliseconds, see: http://redis.io/commands/SET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants