- 论坛徽章:
- 1
|
原帖由 pspman 于 2006-6-13 17:09 发表
哥哥,能给个详细点说明嘛
这个是一个综合应用。
http://weirdsilence.net/software/memsession/
WS Memcached Session Handler for PHP
Normal PHP sessions that are valid across multiple servers, can usually be done by using a database. But utilizing MemCached you get a real speed boost!
Our MemCachedClient for PHP uses the same interface as the one linked at the official API page, our session handler is tested with that client too. But we thought that their client would be overkill for our purpose; therefore we created our own.
NOTE
If you're using this software, we would like to know! We're thinking of compiling a list of links to projects that use it - So if you would like to be listed, drop us a mail! A mail link is at the bottom!
Usage
View the example.php file for usage, it really is that simple...
Configuration
In the session handler (weirdsession.inc.php) in the top you can change the MemCached server ip and port and if you want to use zlib compression.
- $__options = array(
- 'servers' => array(
- '127.0.0.1:11211'
- ),
- 'debug' => false,
- 'compress' => false
- );
复制代码 For future release
* MemCached client: dead server check support.
* MemCached client: Batch key fetch (multiple in one query)
Downloads
* WS-SesHandler-0.02.tar.gz - Version 00.2 (incl. Own MemCached Client) (9 KB)
* WS-MCClient-0.01.tar.gz - Own MemCachedClient only (8 KB)
Real world usage
* Played.dk
Links to resources
* PHP
* PHP - set_session_handler
* MemCached
* MemCached - Client API's
Send us mail! |
|