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

maybe could support for the unix socket? #42

Open
kn007 opened this issue Jul 16, 2014 · 4 comments
Open

maybe could support for the unix socket? #42

kn007 opened this issue Jul 16, 2014 · 4 comments

Comments

@kn007
Copy link

kn007 commented Jul 16, 2014

Using like this:
$memcached_servers = 'unix:/tmp/memcached.sock';
or
$memcached_servers = 'unix:///tmp/memcached.sock:0';

@kn007 kn007 changed the title Hope support for the Unix Socket maybe could support for the unix socket? Jul 16, 2014
@tollmanz
Copy link
Owner

Hi @kn007! I totally missed this ticket. Can you tell me more about this? What are the benefits? Is this likely to work for the majority? What problems might creep in?

@TheLastCicada
Copy link

I know WPEngine uses memcached sockets for connecting - they should be faster as they don't have to deal with all the TCP overhead. However, they'll only be useful when running locally - you'd still need to use TCP if connecting to a remote memcached instance. I've not used them before myself, but would be intrigued to have that option here.

@kn007
Copy link
Author

kn007 commented Dec 14, 2014

@tollmanz Thank you for you reply. This object-cache.php is very useful. My wordpress web site and my memcached server in the same VPS, so it will be faster(less waiting time) when using socket file in high load avg status.
Thanks @TheLastCicada , Memcached version > 2.0.0b1 could using unix socket file.
E.g. addServer('/tmp/memcached.sock',0);
We can do it ourselves.
Not to be confused with Memcache that use 'unix:///path/to/socket'(via php.net)

@tollmanz
Copy link
Owner

@kn007 This is definitely something I want to explore. I like the idea especially if there is a measurable improvement in speed. Thanks for the added information. Hopefully we'll be able to get to this some day.

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

No branches or pull requests

3 participants