选择语言 :

 Module_OOP_ORM_Data::delete_offset_cache

删除指定的offset的缓存(如果有)

如果有ORM cache的设置,会自动调用$this->delete_orm_cache()方法

boolean Module_OOP_ORM_Data::delete_offset_cache( string $index )

参数列表

参数 类型 描述 默认值
$index string $index
返回值
  • boolean
File: ./modules/oop/orm/data.class.php
public function delete_offset_cache( $index )
{
    # 获取配置
    $config = $this->_get_offset_config($index);

    # 不存在指定的配置
    if (!$config) return false;

    # 如果有ORM cache,则清楚ORM cache
    if (isset($config['orm']['cache']))$this->delete_orm_cache($index);

    # 无缓存设置
    if (!isset($config['cache']))return true;

    return OOP_ORM_Parse::delete_offset_cache_data( $this, $index, $config['cache'] );
}