分布式缓存管理-Memcache 是ACE为开发者提供的分布式缓存服务,用来以共享的方式缓存用户的key-value形式的小数据,以加快数据响应,减轻后端存储的压力。
分布式缓存管理-memcache模块主要提供以下功能:
1、 初始化memcache连接
2、获取memcache数据
3、写入memcache数据
4、刷新memcache数据
实用接口:
boolMemcache::init()
arrayMemcache::get( array$keys[, array&$flags] )
boolMemcache::set( string$key, mixed$var[, int$flag[, int$expire]] )
booladd( string$key, mixed$var[, int$flag[, int$expire]] )
boolreplace( string$key, mixed$var[, int$flag[, int$expire]] )
booldecrement( string$key[, int$value= 1] )
boolincrement( string$key[, int$value= 1] )
booldelete( string$key[, int$timeout= 0] )
boolclose()
新闻热点
疑难解答