Class CacheMemcache

Description

Memcache缓存类

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

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

架构函数

  • access: public
CacheMemcache __construct ([ $options = ''])
  • $options
clear (line 138)

清除缓存

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

读取缓存

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

删除缓存

  • access: public
boolen rm (string $name, [ $ttl = false])
  • string $name: 缓存变量名
  • $ttl
set (line 100)

写入缓存

  • access: public
boolen set (string $name, mixed $value, [ $ttl = null])
  • string $name: 缓存变量名
  • mixed $value: 存储数据
  • $ttl

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