首页 > 学院 > 网络通信 > 正文

阿里云Memcache

2019-11-03 23:40:55
字体:
来源:转载
供稿:网友

系统概要

分布式缓存管理-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()


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表