using
system;
using
system.data;
using
system.data.sqlclient;
using
system.threading;
namespace
wj.lib.base
public datebuffer(sqlcommand ssqlcom)
public datebuffer(string ssql)
///
///設定快取時間(分鐘)
///
public
int buffertime
}
///
///獲取快取資料
///
public datatable buffer
}
//////
設定資料查詢儲存過程
///
public sqlcommand sqlcom
msqlcom = value;
//從儲存過程中獲取資料
mgetdatetype = 2;
checkdate(false);
}
get
}
///
///設定資料查詢sql
///
public
string sql
msql = value;
//從查詢語句中獲取資料
mgetdatetype = 1;
checkdate(false);
}
get
}
///
///保持資料更新
///
void checkdate(bool checktime)
else
if (mflagdt < datetime.now)
}
}
catch
}
void updatedate()
else
if(mgetdatetype == 2)
mflagdt = datetime.now.addminutes(mbuffertime);
}
catch
finally
}
}
}
}
簡單資料快取類(c )
using system using system.data using system.data.sqlclient using system.threading namespace wj.lib.base datebuffer 的摘要說明。public class datebuffer int m...
php簡單資料快取類
公司手機觸屏站 由於頁面太多,所以需要做資料快取,就隨便寫乙個資料快取類。直接貼 fianl m foxmail.com 快取類 把資料查詢出,並序列化寫入檔案 class cache 讀取快取檔案 public function open name else 寫入快取檔案 public funct...
C 簡單資料採集
這裡指的是,你發現任意乙個頁面,沒有rss,沒有資料介面,只是通過瀏覽器能夠訪問,把上面的資料用 程式拿過來用。基本原理 1,通過http請求頁面,返回字串的 表示式,提取有用的資料,排除無用的 3,有需要的可以把資料儲存到自己的資料庫中,也報過處理等。4,把提取出來的資料生成自己需要的頁面。乙個偷...