English 中文(简体)
冷聚层连接
原标题:Coldfusion memcached connections

http://www.flexablecoder.com/blog/index.cfm/memcadated”rel=“nofollow” http://www.flexablecoder.com/blog/index.cfm/memcastal/a。 客户。

所有工作ok,但每只花餐,冷聚总是打开与超标服务器的新链接,而不是再使用旧服务器。

是否有办法重新利用连接点?

最佳回答

你们需要先入一个单一吨物体,即只剩下一个 object子。 在适用时,c 您可以先采用应用标准方法:

<cfset application.memcachedFactory = CreateObject("component","memcachedFactory").init("ip:port")>
<cfset application.memcached = application.memcachedFactory.getmemcached()>

如果使用申请,在确定案件之前就对案件进行检查:

<cfif not IsDefined("application.memcached")>
  <cfset application.memcachedFactory = createObject("component","memcachedFactory").init("ip:port")>
  <cfset application.memcached = application.memcachedFactory.getmemcached()>
</cfif>
问题回答

暂无回答




相关问题
Memcached Writes Extremely Slow

I m running memcached on ec2 instances and in some cases am seeing extremely slow writes (10s) for small amounts of data. I m using memcache-client from rails on the client side. Has anyone seen ...

can t install memcache php module

i m trying to install memcache module from http://pecl.php.net/package/memcache. Im using xampp in ubuntu (lampp) with php 5.3. After download the extension, I run phpize, make and make install, then ...

sphinx is returning stale results

Environment: Memcached, Rails 2.2.2 + cache_money, Sphinx + thinking sphinx The following yields stale results: - add a record; mysql contains the correct data - the record is probably cached in ...

Pylons and Memcached

Anyone happen to use this combination in their web application? I m having a bit of trouble finding some sort of tutorial or guideline for configuring this. Also seeing as how I started using Pylons ...

Memcached crashing under moderate load

When running memcached, after a few minutes of use it starts throwing the following errors and memcache stops responding. mcm_server_connect_next_avail():2328 I have searched the Google, and it ...

enyim and memcached : NOT_STORED errors

We are using memcached 1.2.4 via enyim and are finding it difficult to get some objects to cache. If I watch the memcache console it just says NOT_STORED . I think we need to use [serializable] but ...

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page ...

热门标签