SlideShare una empresa de Scribd logo
1 de 30
[object Object]
Overview ,[object Object],[object Object],[object Object],[object Object]
Introduction to Caching in ASP.NET ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Output Caching ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What Is Output Caching? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
@ OutputCache Directive and the  Cache Object ,[object Object],[object Object],[object Object],<%@ OutputCache Duration=&quot;600“ Location=&quot;Any“ VaryByParm=“none” %> Is equivalent to: [C#] Response.Cache.SetExpires(DateTime.Now.AddSeconds(600)); Response.Cache.SetCacheability(HttpCacheability.Public);
OutputCache Members:  Duration and Location ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],<%@ OutputCache Duration=&quot;600&quot; Location=&quot;Any“ VaryByParam=“none” %>
OutputCache Members:  VaryByParam and VaryByHeader ,[object Object],[object Object],[object Object],[object Object],<%@ OutputCache Duration=&quot;10“ VaryByParam=&quot;location;count&quot; %> <%@ OutputCache Duration=&quot;60“ VaryByHeader=&quot;Accept-Language&quot; %>
OutputCache Members:  VaryByCustom ,[object Object],[object Object],[object Object]
Fragment Caching ,[object Object],[object Object],[object Object],[object Object]
What Is Fragment Caching? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Fragment Caching a User Control ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
VaryByControl ,[object Object],[object Object],[object Object],[object Object],<%@ OutputCache Duration=&quot;10“ VaryByControl=&quot;State;Country“ VaryByParam=&quot;*&quot;%>
Post cache substitution ,[object Object],[object Object],[object Object],[object Object]
SQL dependency ,[object Object],[object Object]
SQL dependency ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
SQL dependency:Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Page/Fragment output cache : Best practices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Page/Fragment output cache : Best practices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Page/Fragment output cache : Best practices ,[object Object],[object Object],[object Object],[object Object]
Page/Fragment output cache : Best practices ,[object Object],[object Object],[object Object],[object Object],[object Object]
Data Caching ,[object Object],[object Object],[object Object],[object Object],[object Object]
What Is Data Caching? ,[object Object],[object Object],[object Object],Cache [“counter”] = mycount.text Application[“counter”] =   mycount.text
Working with the Cache Object ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Public DataSet GetProductData() {  if (Cache[&quot;ProductData“] = null)  { Cache[&quot;ProductData“] = LoadDataSet(); }    Return Cache[&quot;ProductData“]; }
Cache Dependencies ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Scavenging  Memory ,[object Object],[object Object],[object Object],[object Object],[object Object]
Using Callbacks with Caching ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Caching in Web Farm ,[object Object],[object Object]
Review ,[object Object],[object Object],[object Object]
More information ,[object Object],[object Object]

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Ch 7 data binding
Ch 7 data bindingCh 7 data binding
Ch 7 data binding
 
Java 8 - Features Overview
Java 8 - Features OverviewJava 8 - Features Overview
Java 8 - Features Overview
 
Introduction To REST
Introduction To RESTIntroduction To REST
Introduction To REST
 
Introduction To PHP
Introduction To PHPIntroduction To PHP
Introduction To PHP
 
Php array
Php arrayPhp array
Php array
 
Php and MySQL
Php and MySQLPhp and MySQL
Php and MySQL
 
Intro to beautiful soup
Intro to beautiful soupIntro to beautiful soup
Intro to beautiful soup
 
Polymorphism presentation in java
Polymorphism presentation in javaPolymorphism presentation in java
Polymorphism presentation in java
 
Polymorphism In Java
Polymorphism In JavaPolymorphism In Java
Polymorphism In Java
 
Training On Angular Js
Training On Angular JsTraining On Angular Js
Training On Angular Js
 
Ajax ppt - 32 slides
Ajax ppt - 32 slidesAjax ppt - 32 slides
Ajax ppt - 32 slides
 
Js ppt
Js pptJs ppt
Js ppt
 
Sessions in php
Sessions in php Sessions in php
Sessions in php
 
Introduction to back-end
Introduction to back-endIntroduction to back-end
Introduction to back-end
 
7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Website performance optimization
Website performance optimizationWebsite performance optimization
Website performance optimization
 
Beautiful soup
Beautiful soupBeautiful soup
Beautiful soup
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
JavaScript - Chapter 3 - Introduction
 JavaScript - Chapter 3 - Introduction JavaScript - Chapter 3 - Introduction
JavaScript - Chapter 3 - Introduction
 

Destacado (7)

Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
 
Caching Enhancement in ASP.NET 4.0
Caching Enhancement in ASP.NET 4.0Caching Enhancement in ASP.NET 4.0
Caching Enhancement in ASP.NET 4.0
 
Application Security -- Authorization Models
Application Security -- Authorization ModelsApplication Security -- Authorization Models
Application Security -- Authorization Models
 
State management in ASP .NET
State  management in ASP .NETState  management in ASP .NET
State management in ASP .NET
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showThe complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
 
cache memory
cache memorycache memory
cache memory
 

Similar a Aspnet Caching

State management
State managementState management
State management
Iblesoft
 
State management 1
State management 1State management 1
State management 1
singhadarsh
 
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling PagecacheChanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Ajax Experience 2009
 
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
Nuno Godinho
 

Similar a Aspnet Caching (20)

awergaezrg
awergaezrgawergaezrg
awergaezrg
 
sakdjfhaksjfhaskjh
sakdjfhaksjfhaskjhsakdjfhaksjfhaskjh
sakdjfhaksjfhaskjh
 
salkdjfhdjkghdfkjh
salkdjfhdjkghdfkjhsalkdjfhdjkghdfkjh
salkdjfhdjkghdfkjh
 
aksdfhaskdjfhasdjkh
aksdfhaskdjfhasdjkhaksdfhaskdjfhasdjkh
aksdfhaskdjfhasdjkh
 
askldjfhaskdfj aslkdjfhaskdfhasjk askldf ashkdf
askldjfhaskdfj aslkdjfhaskdfhasjk askldf ashkdfaskldjfhaskdfj aslkdjfhaskdfhasjk askldf ashkdf
askldjfhaskdfj aslkdjfhaskdfhasjk askldf ashkdf
 
aergserga
aergsergaaergserga
aergserga
 
sergaerwga
sergaerwgasergaerwga
sergaerwga
 
Caching in asp.net
Caching in asp.netCaching in asp.net
Caching in asp.net
 
Caching in asp.net
Caching in asp.netCaching in asp.net
Caching in asp.net
 
Chapter 23
Chapter 23Chapter 23
Chapter 23
 
2310 b 15
2310 b 152310 b 15
2310 b 15
 
2310 b 15
2310 b 152310 b 15
2310 b 15
 
ASP.NET 12 - State Management
ASP.NET 12 - State ManagementASP.NET 12 - State Management
ASP.NET 12 - State Management
 
State management
State managementState management
State management
 
State management 1
State management 1State management 1
State management 1
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
 
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling PagecacheChanhao Jiang And David Wei Presentation Quickling Pagecache
Chanhao Jiang And David Wei Presentation Quickling Pagecache
 
Ride on the Fast Track of Web with Ruby on Rails- Part 2
Ride on the Fast Track of Web with Ruby on Rails- Part 2Ride on the Fast Track of Web with Ruby on Rails- Part 2
Ride on the Fast Track of Web with Ruby on Rails- Part 2
 
Caching By Nyros Developer
Caching By Nyros DeveloperCaching By Nyros Developer
Caching By Nyros Developer
 
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
 

Más de rainynovember12 (8)

Object Oriented Design SOLID Principles
Object Oriented Design SOLID PrinciplesObject Oriented Design SOLID Principles
Object Oriented Design SOLID Principles
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnet
 
Dependency Injection Inversion Of Control And Unity
Dependency Injection Inversion Of Control And UnityDependency Injection Inversion Of Control And Unity
Dependency Injection Inversion Of Control And Unity
 
Introduction To REST
Introduction To RESTIntroduction To REST
Introduction To REST
 
Sql Basics And Advanced
Sql Basics And AdvancedSql Basics And Advanced
Sql Basics And Advanced
 
Mvc Brief Overview
Mvc Brief OverviewMvc Brief Overview
Mvc Brief Overview
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 
Optimizing Data Accessin Sq Lserver2005
Optimizing Data Accessin Sq Lserver2005Optimizing Data Accessin Sq Lserver2005
Optimizing Data Accessin Sq Lserver2005
 

Aspnet Caching

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.