How to design an ASP.NET MVC site for caching with Velocity?

后端 未结 4 504
离开以前
离开以前 2021-02-01 11:03

I\'m coming from the LAMP world, where the \"cache everything\" mentality is prevalent. Everything is put in memcache.

I\'m starting a new project with ASP.NET MVC and

4条回答
  •  借酒劲吻你
    2021-02-01 11:56

    @dswatic: Many thanks. It looks like I can add caching later on with minimal pain. Here's an important warning from that site though:

    "If you use the Object Relational Designer to generate your LINQ to SQL classes then your LINQ to SQL classes will not be serializable. To work around this problem, I built my LINQ to SQL classes by hand."

    Only serializable objects can be cached with Velocity.

    Thanks again.

提交回复
热议问题