Class CacheDb

Description

数据库类型缓存类

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

Base
   |
   --Cache
      |
      --CacheDb
Variable Summary
string $db
Method Summary
CacheDb __construct ([ $options = ''])
boolen clear ()
mixed get (string $name)
boolen rm (string $name)
boolen set (string $name, mixed $value, [ $expireTime = 0], integer $expire)
Variables
string $db (line 44)

缓存数据库对象 采用数据库方式有效

  • access: protected

Inherited Variables

Inherited from Cache

Cache::$connected
Cache::$expire
Cache::$handler
Cache::$options
Cache::$prefix
Cache::$type
Methods
Constructor __construct (line 53)

架构函数

  • access: public
CacheDb __construct ([ $options = ''])
  • $options
clear (line 199)

清除缓存

  • access: public
boolen clear ()
get (line 97)

读取缓存

  • access: public
mixed get (string $name)
  • string $name: 缓存变量名
rm (line 184)

删除缓存

  • access: public
boolen rm (string $name)
  • string $name: 缓存变量名
set (line 137)

写入缓存

  • access: public
boolen set (string $name, mixed $value, [ $expireTime = 0], integer $expire)
  • string $name: 缓存变量名
  • mixed $value: 存储数据
  • integer $expire: 有效时间(秒)
  • $expireTime

Inherited Methods

Inherited From Cache

Cache::connect()
Cache::getInstance()
Cache::getOptions()
Cache::Q()
Cache::setOptions()
Cache::W()
Cache::__get()
Cache::__set()

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