选择语言 :

Module_Storage_Driver_Redis
    └ Module_Storage_Driver

Redis Storage驱动器

API - Module_Storage_Driver_Redis

继承自父类的方法和变量
author
呼吸二氧化碳 jonwang@myqee.com
category
Module
package
Storage
copyright
Copyright © 2008-2013 myqee.com
license
http://www.myqee.com/license.html

$this->__construct( $config_name = 'default')

Redis缓存驱动器

参数列表

参数 类型 描述 默认值
$config_name $config_name 配置名或数组 string(7) "default"

$this->__destruct( )


$this->_connect( )

连接服务器


$this->close_connect( )

关闭连接


$this->get( $key )

取得数据,支持批量取

参数列表

参数 类型 描述 默认值
$key string/array $key
返回值
  • mixed

$this->set( $key , $value = null)

存数据,支持多存

参数列表

参数 类型 描述 默认值
$key string/array $key
$value $data Value 多存时此项可空 null
返回值
  • boolean

$this->delete( $key )

删除指定key的缓存,若$key===true则表示删除全部

参数列表

参数 类型 描述 默认值
$key string $key

$this->delete_all( )

删除全部


$this->__call( )