缓存服务
[ 查看开发文档 ] [ 类树图: Cache ] [ 索引: Cache ] [ 所有元素 ] [ 首页 ]

Class: Memcache

源文件路径: /Service/Cache/Drivers/Memcache.class.php

Class Overview

Cache
   |
   --Memcache

Memcache缓存驱动


Methods


Inherited Variables

Inherited Methods


Class Details

[line 12]
Memcache缓存驱动


[ Top ]


Method Detail

__construct (Constructor)   [line 19]

Memcache __construct( [array $options = array()])

架构函数
  • Access: public

Parameters:

array   $options   —  缓存参数

[ Top ]

clear   [line 93]

boolean clear( )

清除缓存
  • Access: public

[ Top ]

get   [line 48]

mixed get( string $name)

读取缓存
  • Access: public

Parameters:

string   $name   —  缓存变量名

[ Top ]

rm   [line 81]

boolean rm( string $name, [ $ttl = false])

删除缓存
  • Access: public

Parameters:

string   $name   —  缓存变量名
   $ttl   — 

[ Top ]

set   [line 60]

boolean set( string $name, mixed $value, [integer $expire = null])

写入缓存
  • Access: public

Parameters:

string   $name   —  缓存变量名
mixed   $value   —  存储数据
integer   $expire   —  有效时间(秒)

[ Top ]


Powered by Steeze. author email: spring.wind2006@163.com