Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Are connections automatically pooled when using mod_perl?

by Anonymous Monk
on Dec 19, 2011 at 08:43 UTC ( [id://944219]=note: print w/replies, xml ) Need Help??


in reply to Are connections automatically pooled when using mod_perl?

No, nothing is automatic

If you're using Apache::DBI, you're getting cached connections, whether or not you're using DBI->connect_cached

Read Apache::DBI, much of the information carries over to how to accomplish said task for memcached

  • Comment on Re: Are connections automatically pooled when using mod_perl?

Replies are listed 'Best First'.
Re^2: Are connections automatically pooled when using mod_perl?
by PerlOnTheWay (Monk) on Dec 19, 2011 at 09:22 UTC

    How is that done for memcached?

    I don't find a Apache::Memcached module exists..

      I would do it the same way as Apache::DBI does, except that instead of calling DBI->connect, I would set up the connection to memcached. It shouldn't be hard if you work from Apache::DBI. ->pinging the connection might be a bit more difficult.

        Is that such a module like Apache::DBI that works for memcached?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://944219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-24 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found