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

Not working with Dalli #3

Closed
jalberto opened this issue Mar 7, 2019 · 7 comments
Closed

Not working with Dalli #3

jalberto opened this issue Mar 7, 2019 · 7 comments

Comments

@jalberto
Copy link

jalberto commented Mar 7, 2019

Nice project :)

Just trying it noticed it doesn't work with Dalli gem.

config.cache_store = :mem_cache_store, HOST], {compress: true, pool_size: 50, raise_errors: false }

First I got an error about using a connection pool, but even when no connection pool is used I get this error:

NoMethodError: undefined method keys' for #Dalli::Client:0x...`

@alvesjtiago
Copy link
Owner

Thanks @jalberto!

Going to setup a demo project with Dalli to debug this.

@jalberto
Copy link
Author

jalberto commented Mar 7, 2019

Thanks @alvesjtiago !

As far I know, Dalli is the most common client to use when using memcached, Rails uses it by default if the gem is installed, the same with conection_pool

@alvesjtiago
Copy link
Owner

alvesjtiago commented Mar 8, 2019

@jalberto I've implemented a very experimental version that connects to Memcache and Dalli on version 0.1.12 (already pushed to rubygems). It would be great if you could give it a try and let me know if it works for you. Thanks!

@jalberto
Copy link
Author

jalberto commented Mar 8, 2019

@alvesjtiago yay! it kind of works :)
Some key and values are displayed correctly, others seem encoded like

screenshot from 2019-03-08 18-44-52

@alvesjtiago
Copy link
Owner

Almost 😅

Just released version 0.1.13 with (hopefully) a fix. Let me know if it works 🤞

Thanks!

@jalberto
Copy link
Author

@alvesjtiago now the keys looks better :) thanks!

@alvesjtiago
Copy link
Owner

@jalberto awesome! Going to close the issue. Let me know if there are any other problems you encounter.

Also it would be great to understand what are you using FastEntry for (ex. development debugging, production cache invalidation and inspection, etc). If you have time for a quick call or email chat, send me an email to tiago at rebase dot studio. Thanks again 😊

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