The singleton isn't shared across processes though. We also use a singleton, but the constructor still gets called once for each process that gets fired up.
If we are using connection pooling, do we need to worry about multiple PHP processes adding servers? Jay On Apr 6, 5:06 pm, Brian Moon <[email protected]> wrote: > >> Just give a string parameter to the memcached constructor , any class > >> instance with the same string as parameter should use the same > >> connection. > > >> /tyn > > > Yeah, only thing to watch out for is not to add the servers more than > > once. > > We use a singleton to avoid this. We pass in the "config" we want. it is > loaded and the singleton created. > > Brian. -- To unsubscribe, reply using "remove me" as the subject.
