选择语言 :

 Module_Cache::get_and_delete

获取数据后立即删除

null Module_Cache::get_and_delete( string $key )

参数列表

参数 类型 描述 默认值
$key string $key
File: ./modules/cache/cache.class.php
public function get_and_delete($key)
{
    $rs = $this->get($key);
    $this->delete($key);

    return $rs;
}