Class Cache

Description

缓存管理类

Located in /Think/Util/Cache.class.php (line 24)

Base
   |
   --Cache
Direct descendents
Class Description
CacheApachenote Apachenote缓存类
CacheApc Apc缓存类
CacheDb 数据库类型缓存类
CacheEaccelerator Eaccelerator缓存类
CacheFile 文件类型缓存类
CacheMemcache Memcache缓存类
CacheShmop Shmop缓存类
CacheSqlite Sqlite缓存类
CacheXcache Xcache缓存类
Variable Summary
string $connected
integer $expire
string $handler
integer $options
string $prefix
integer $type
Method Summary
static mixed getInstance ()
object connect ([string $type = ''], [array $options = array()])
void getOptions ( $name)
void Q ([ $times = ''])
void setOptions ( $name,  $value)
void W ([ $times = ''])
void __get ( $name)
void __set ( $name,  $value)
Variables
string $connected (line 35)

是否连接

  • access: protected
integer $expire (line 85)

缓存过期时间

  • access: protected
string $handler (line 45)

操作句柄

  • access: protected
integer $options = array() (line 65)

缓存连接参数

  • access: protected
string $prefix = '~@' (line 55)

缓存存储前缀

  • access: protected
integer $type (line 75)

缓存类型

  • access: protected
Methods
static getInstance (line 148)

取得缓存类实例

  • throws: ThinkExecption
  • access: public
static mixed getInstance ()
connect (line 101)

连接缓存

  • throws: ThinkExecption
  • access: public
object connect ([string $type = ''], [array $options = array()])
  • string $type: 缓存类型
  • array $options: 配置数组
getOptions (line 133)
  • access: public
void getOptions ( $name)
  • $name
Q (line 155)
  • access: public
void Q ([ $times = ''])
  • $times
setOptions (line 129)
  • access: public
void setOptions ( $name,  $value)
  • $name
  • $value
W (line 165)
  • access: public
void W ([ $times = ''])
  • $times
__get (line 121)
  • access: protected
void __get ( $name)
  • $name
__set (line 125)
  • access: protected
void __set ( $name,  $value)
  • $name
  • $value

Documentation generated on Thu, 27 Mar 2008 08:20:25 +0000 by 塞北的雪