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
I want to provide some functionality to my application while using memcache-plus library.
I'm currently using the library as part of my project, also I've MemCachier (heroku add-on) as my cache's server. The thing is that I need to authenticate to the server and I did something like proposed here: https://www.memcachier.com/documentation/supported-protocols-ascii-binary. Basically, I'm setting a cache item right after the connection attempt with key=username and value=password so it can establish connection. The issue that I have been experiencing is how to deal with reconnection if the server has any failure, is there a way to set a callback function when trying to reconnect? I need to set that username/password item again in order to avoid connection failure.
I will really appreciate any help that you can provide, by the way great work with the library!
Thank you
The text was updated successfully, but these errors were encountered:
Would love to add support to this library for this. I think we are using the ASCII protocol which is likely why you're running into issues, but there's no reason we couldn't support binary as well, I'd envision it as an option we send to the initialization (with the default being ASCII) so something like this:
Hi!
I want to provide some functionality to my application while using memcache-plus library.
I'm currently using the library as part of my project, also I've MemCachier (heroku add-on) as my cache's server. The thing is that I need to authenticate to the server and I did something like proposed here: https://www.memcachier.com/documentation/supported-protocols-ascii-binary. Basically, I'm setting a cache item right after the connection attempt with key=username and value=password so it can establish connection. The issue that I have been experiencing is how to deal with reconnection if the server has any failure, is there a way to set a callback function when trying to reconnect? I need to set that username/password item again in order to avoid connection failure.
I will really appreciate any help that you can provide, by the way great work with the library!
Thank you
The text was updated successfully, but these errors were encountered: