GithubHelp home page GithubHelp logo

unix socket about predis HOT 4 CLOSED

predis avatar predis commented on June 3, 2024
unix socket

from predis.

Comments (4)

nrk avatar nrk commented on June 3, 2024

Predis v0.6.x does not offer the ability to use connections different from the standard TCP/IP based one. On the other hand, unix domain socket connections are already supported with v0.7.0-dev (the current master branch) but, as the version tag suggest, this version is actually far from being stable even if it passes the whole test suite, so I usually discourage to use it in production environments.

I might come up with something for the next patch release (v0.6.6) if it's not much work and, more importantly, if the needed changes do not lead to breaking changes of the public API with previous releases in the 0.6 series.

from predis.

sunra avatar sunra commented on June 3, 2024

Many thanks for your work! Please do work at your own pace - as you wish. I am convinced that the project is in safe hands:) I understand that you are aware of the problem and sooner or later everything will be implemented

from predis.

nrk avatar nrk commented on June 3, 2024

While working today on a complete overhaul of the network connection API for the next major version of Predis, I think I've come up with a decent way to provide Unix domain socket connection that should be compatible with the current implementation of the internals of v0.6.x. I'm not quite sure of it yet, I will test this later or tomorrow at worst.

from predis.

nrk avatar nrk commented on June 3, 2024

OK, I've added support for UNIX domain sockets in Predis v0.6 with this commit. This will be part of the next patch release (v0.6.6) but I don't know when I'll do the actual release. In the meanwhile I think you can use the library from the v0.6 branch (up to the above mentioned commit) since the changes are minimal and you shouldn't encounter any issue.

PS: I haven't aligned the php5.2_backport branch with these changes so let me know if you are using the backported version of Predis, I'll update that branch too.

from predis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.