Class CacheFile

Description

文件类型缓存类

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

Base
   |
   --Cache
      |
      --CacheFile
Method Summary
CacheFile __construct ([ $options = ''])
boolen clear (string $name)
mixed get (string $name)
boolen rm (string $name)
boolen set (string $name, mixed $value, [int $expire = ''])
Variables
Methods
Constructor __construct (line 34)

架构函数

  • access: public
CacheFile __construct ([ $options = ''])
  • $options
clear (line 218)

清除缓存

  • access: public
boolen clear (string $name)
  • string $name: 缓存变量名
get (line 115)

读取缓存

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

删除缓存

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

写入缓存

  • access: public
boolen set (string $name, mixed $value, [int $expire = ''])
  • string $name: 缓存变量名
  • mixed $value: 存储数据
  • int $expire: 有效时间 -1 为永久

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 塞北的雪