Archive for 八月 2007
看文件總是會有新發現…
如果你用的 php, php-memcache 版本夠新…
可以很輕易的將 Session 用 memcached 保存了…
| session.save_path string
Defines a comma separated of server urls to use for session storage, for example "tcp://host1:11211, tcp://host2:11211". Each url may contain parameters which are applied to that server, they are the same as for the Memcache::addServer() method. For example "tcp://host1:11211?persistent=1&weight=1&timeout=1&retry_interval=15" |
| 代碼: |
| <?php $session_save_path = "tcp://$host:$port?persistent=1&weight=2&timeout=2&retry_interval=10, ,tcp://$host:$port "; ini_set('session.save_handler', 'memcache'); ini_set('session.save_path', $session_save_path); ?> |
No tags
Pixnet 這一招真是太厲害了!~
利用跟 Google Apps 的合作,以最少的人力跟開發時間,更節省了大多數的設備與相關環境建制的需求。
一下子就可以提供所以使用者2G信箱,且還有完整的垃圾信過濾機制。
我想 Pixnet 應該也不是一分錢都沒有花,個人覺得應該是跟 Google 採用下面的合作方式,以較為低廉的價格來替所有使用者提供服務。
http://www.google.com/a/partners/?hl=zh_TW
以下是 Pixnet 方面的公告…
http://blog.pixnet.net/admin/post/7454550
稍微算一下就大概可以知道 pixnet 此舉可以說是超級划算的,一來省了頻寬,又省了機器,更省了開發前後台的時間與人力。
No tags
