1+ <!DOCTYPE html>
2+ < html lang ="en "> < head > < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 ">
3+ < meta charset ="utf-8 ">
4+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < meta name ="description " content ="Full stack Python shows how an entire Python web application is built, from the server to the front end JavaScript. ">
7+ < meta name ="author " content ="Matt Makai ">
8+ < link rel ="shortcut icon " href ="theme/img/full-stack-python-logo-bw.png ">
9+ < title > Full Stack Python</ title >
10+ <!-- Bootstrap core CSS -->
11+ < link href ="theme/css/fsp.css " rel ="stylesheet ">
12+ <!--[if lt IE 9]>
13+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
14+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
15+ <![endif]-->
16+ < style >
17+ html ,
18+ body {
19+ font-size : 18px ;
20+ color : # 222 ;
21+ background : # fefefe ;
22+ }
23+ body {
24+ padding-top : 30px ;
25+ }
26+ .footer {
27+ padding : 20px 0 30px 0 ;
28+ }
29+ a , a : hover {border-bottom : 1px dotted; color : # 444 ;}
30+ a : hover {text-decoration : none; color : # 000 ;}
31+ .logo-title {font-size : 56px ; color : # 403072 ; padding-top : 80px ;
32+ font-family : "News Cycle" , "Arial Narrow Bold" , sans-serif;
33+ font-weight : bold; line-height : 30px ; margin-left : 5px ;}
34+ .logo-title a , .logo-title a : hover {color : # 000 ; text-decoration : none;
35+ border-bottom : none;}
36+ .logo-title a : hover {color : gray;}
37+ .logo-image {vertical-align : top; border : none;}
38+ a .list-group-item .active {background : # 444 ; border : 1px solid # 222 ;}
39+ a .list-group-item .active : hover {background : # 444 ; border : 1px solid # 222 ;}
40+ # sidebar {margin-top : 30px ;}
41+
42+ </ style >
43+
44+ < script type ="text/javascript ">
45+ var _gaq = _gaq || [ ] ;
46+ _gaq . push ( [ '_setAccount' , 'UA-19910497-7' ] ) ;
47+ _gaq . push ( [ '_trackPageview' ] ) ;
48+
49+ ( function ( ) {
50+ var ga = document . createElement ( 'script' ) ; ga . type = 'text/javascript' ; ga . async = true ;
51+ ga . src = ( 'https:' == document . location . protocol ? 'https://ssl' : 'http://www' ) + '.google-analytics.com/ga.js' ;
52+ var s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
53+ } ) ( ) ;
54+ </ script >
55+ </ head >
56+
57+ < body >
58+ < a href ="https://github.com/makaimc/fullstackpython.github.com " class ="github ">
59+ < img style ="position: absolute; top: 0; right: 0; border: 0; " src ="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png " alt ="Fork me on GitHub " />
60+ </ a >
61+ < div class ="container ">
62+ < div class ="row ">
63+ < div class ="col-md-12 ">
64+ < div class ="logo-header-section ">
65+ < a href ="/ "> < img src ="theme/img/full-stack-python-logo-bw.png " height ="42 " width ="42 " class ="logo-image " /> </ a >
66+ < span class ="logo-title "> < a href ="/ "> Full Stack Python</ a > </ span >
67+ </ div >
68+ </ div >
69+ </ div > < div class ="row ">
70+ < div class ="col-md-8 ">
71+ < h1 > Caching</ h1 >
72+ < p > Caching can reduce load on servers by storing the results of common
73+ operations and serving the precomputed answers to clients.</ p >
74+ < p > For example, instead of retrieving data from database tables that rarely
75+ change, you can store the values in-memory. Retrieving values from an
76+ in-memory location is far faster than retrieving them from a database (which
77+ stores them on a persistent disk like a hard drive). When the cached values
78+ change the system can invalidate the cache and re-retrieve the updated values
79+ for future requests.</ p >
80+ < p > A cache can be created for multiple layers of the stack.</ p >
81+ < div class ="section " id ="caching-resources ">
82+ < h2 > Caching Resources</ h2 >
83+ < p > < a class ="reference external " href ="http://memcached.org/ "> memcached</ a > is a common in-memory caching system.</ p >
84+ < p > < a class ="reference external " href ="http://redis.io/ "> Redis</ a > is a key-value in-memory data store that can
85+ easily be configured for caching with libraries such as
86+ < a class ="reference external " href ="https://github.com/sebleier/django-redis-cache "> django-redis-cache</ a > .</ p >
87+ </ div >
88+
89+ < br />
90+ Next read about
91+ < a href ="/web-analytics.html "> web analytics</ a > .
92+
93+ </ div >
94+ < div class ="col-md-offset-1 col-md-3 " id ="sidebar ">
95+ < div class ="list-group ">
96+ < a href ="/introduction.html " class ="list-group-item "> Introduction</ a >
97+ < a href ="/servers.html " class ="list-group-item "> Servers</ a >
98+ < a href ="/operating-system.html " class ="list-group-item "> Operating System</ a >
99+ < a href ="/web-server.html " class ="list-group-item "> Web Server</ a >
100+ < a href ="/database.html " class ="list-group-item "> Database</ a >
101+ < a href ="/wsgi-server.html " class ="list-group-item "> WSGI Server</ a >
102+ < a href ="/web-framework.html " class ="list-group-item "> Web Framework</ a >
103+ < a href ="/static-content.html " class ="list-group-item "> Static Content</ a >
104+ < a href ="/website-security.html " class ="list-group-item "> Website Security</ a >
105+ < a href ="/caching.html " class ="list-group-item active "> Caching</ a >
106+ < a href ="/web-analytics.html " class ="list-group-item "> Web Analytics</ a >
107+ < a href ="/monitoring.html " class ="list-group-item "> Monitoring</ a >
108+ < a href ="/source-control.html " class ="list-group-item "> Source Control</ a >
109+ < a href ="/configuration-management.html " class ="list-group-item "> Configuration Management</ a >
110+ < a href ="/dependency-management.html " class ="list-group-item "> Application Dependencies</ a >
111+ < a href ="/no-sql-datastore.html " class ="list-group-item "> NoSQL Data Stores</ a >
112+ < a href ="/about-author.html " class ="list-group-item "> About</ a >
113+ < a href ="/change-log.html " class ="list-group-item "> Change Log</ a >
114+ </ div >
115+ </ div > </ div >
116+ < hr />
117+ < div class ="footer pull-right ">
118+ < a href ="http://www.mattmakai.com/ " class ="underline "> Matt Makai</ a > 2014
119+ </ div >
120+ </ div >
121+
122+ < script src ="http://code.jquery.com/jquery-2.1.0.min.js "> </ script >
123+ < script src ="theme/js/bootstrap.min.js "> </ script >
124+ </ body >
125+ </ html >
0 commit comments