require_once 'Rong/Cache.php'; $config = array( "cache_dir" => ROOT."/temp/cache" ); $cache = Rong_Cache::factory( "File" , $config );
$cache->set( "user_137" , array("id" => 137 ,"name" => "yang qing rong " ), 200000 , array("user" , "137" , "name") );
$val = $cache->get( "user_137" );