29
2015
05

【C#、Asp.Net 工具类大全】Cache缓存常用操作类

使用实例:

private User u = new User();

private string urlPath = "";

protected void Page_Load(object sender, EventArgs e)

{

    if (!Page.IsPostBack)

    {

        #region 基础数据

        u = new User();

        u.UserName = "郑德才";

        u.UserAge = "27";

        u.UserSex = "男";

        u.UserID = "http://www.zhengdecai.com";

        urlPath = Server.MapPath("~/file/");

        #endregion

        cacheInfo();

    }

}

/// <summary>

/// 缓存测试

/// </summary>

«1»