Git Product home page Git Product logo

statichtml's Introduction

  StaticHtml 
  是一个简单,易扩展,高效的asp.net 静态html生成组建, 由纯asp.net编写,可以在不改变网站任何
  源代码的情况下,为网站添加html静态缓存。 只需要在web.config配置即可。 兼容urlrewrite的网站
  怎么使用?
  

  系统主要有一下几个接口
  IPatten 判断请求是否要生成html缓存 ,主要方法:bool IsPatten(HttpRequest request)
  IGenKey 将当前请求生成一个唯一key,主要方法:String GenKey(HttpRequest request)
  IExpire 判断是否过期, 主要方法bool IsExpire(HttpRequest req, CacheInfo info)
  IStore html存储容器,主要方法:void Save(string key, Stream repInfo); 保存html内容
  String Get(String key);获取html, Stream Get(String key);查询Html缓存信息
 
  如果您阅读源码可以HttpModule -》 HtmlStaticCore 这么一个入口, 其实整个源码是非常简单的。
  可以参看这里: http://www.cnblogs.com/tianqiq
  作者:tianqiq	
  邮件: [email protected](有任何问题,发送到这个邮件)

statichtml's People

Contributors

tianqiq avatar

Watchers

James Cloos avatar liutian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.