选择语言 :

Module_Storage_Driver_File
    └ Module_Storage_Driver

文件处理驱动

API - Module_Storage_Driver_File

author
呼吸二氧化碳 jonwang@myqee.com
category
Module
package
Storage
copyright
Copyright © 2008-2013 myqee.com
license
http://www.myqee.com/license.html

$this->__construct( )


$this->get( $key )

取得数据,支持批量取

参数列表

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

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

存数据

参数列表

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

$this->delete( $key )

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

参数列表

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

$this->delete_all( )

删除全部


$this->get_filename_by_key( $key )

根据KEY获取文件路径

参数列表

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

$this->set_prefix( $prefix )

设置前缀

参数列表

参数 类型 描述 默认值
$prefix string $prefix
返回值
  • $this