You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried to connect to memcached host without this gem? Just to ensure it's not network related issues.
Example:
$ memcached -l 127.0.0.1 -p 11211 -m 64 -vv
$ telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
get agents-1
VALUE agents-1 1 4
i
END
quit
Connection closed by foreign host.
@jaswinder97 Memcached does not have a namespace or something like delete/query by wildcards. This project is just actually a workaround for this. But using telnet and a very large list of keys may not work correctly. I do not recommend using this gem in production.
Another good option of key-value db is Redis. And you can do something like:
redis-cli --scan --pattern your_namespace:* | xargs redis-cli del
I tried to set timeout as
Dalli::KeysMatch.config.telnet({ 'Timeout' => 200, 'Prompt' => /(^END$)/ })
But it doesn't work and
.keys(/agents/
always gives timeout error
The text was updated successfully, but these errors were encountered: