资 源 简 介
FAST-STAT(V1.0)
Fast stat for heavy loaded sites, which is writen with php extension.
Installation
Install the php extension regular.
Config the php.ini for connection pool:
Example: [stat]fast_stat.start_connection_number=10fast_stat.server_host="10.207.0.22"fast_stat.server_port=1978
ClassName
FAST_STAT
Builtin Functions
1.__construct
Description
adm_stat __construct ( { host, port } )
#### Parameters ####
* host: the stat server host ip, default: 127.0.0.1.
* port: the stat server port, default: 1978 //for tt
#### Return Values ####
Returns the adm_stat object.
### 2.addStatCount ###
#### Description ####
int addStatCount(key{, type, {num}})
Add the stat count to the key.
#### Parameters ####
* key: the stat key.
* type: "show" or "click",default: "click".
* num: the added count by once