<s>
Windows	B-Application
Azure	I-Application
Caching	I-Application
allows	O
a	O
cloud	B-Architecture
service	I-Architecture
to	O
host	O
Caching	O
on	O
a	O
Windows	O
Azure	O
role	O
.	O
</s>
<s>
The	O
cloud	B-Architecture
service	I-Architecture
shown	O
has	O
three	O
roles	O
:	O
Web1	O
,	O
Worker1	O
,	O
and	O
Cache1	O
.	O
</s>
<s>
A	O
dedicated	O
topology	O
has	O
the	O
advantage	O
of	O
scaling	O
the	O
caching	O
tier	O
independently	O
of	O
any	O
other	O
role	O
in	B-Architecture
the	I-Architecture
cloud	I-Architecture
service	O
.	O
</s>
<s>
The	O
cloud	B-Architecture
service	I-Architecture
has	O
two	O
roles	O
:	O
Web1	O
and	O
Worker1	O
.	O
</s>
<s>
Because	O
this	O
role	O
also	O
hosts	O
the	O
web	O
front-end	O
for	O
the	O
cloud	B-Architecture
service	I-Architecture
,	O
the	O
cache	O
is	O
configured	O
to	O
use	O
only	O
a	O
percentage	O
of	O
the	O
physical	O
memory	O
on	O
each	O
instance	O
of	O
the	O
Web1	O
role	O
.	O
</s>
<s>
A	O
co-located	O
cache	O
is	O
a	O
cost-effective	O
way	O
to	O
make	O
use	O
of	O
existing	O
memory	O
on	O
a	O
role	O
within	O
a	O
cloud	B-Architecture
service	I-Architecture
.	O
</s>
<s>
The	O
following	O
sections	O
show	O
Windows	B-Application
Azure	I-Application
Caching	I-Application
configuration	O
and	O
code	O
examples	O
.	O
</s>
<s>
In	O
Visual	B-Application
Studio	I-Application
,	O
Caching	O
is	O
configured	O
in	O
the	O
Caching	O
tab	O
of	O
the	O
properties	O
of	O
the	O
role	O
that	O
hosts	O
Caching	O
.	O
</s>
<s>
One	O
way	O
to	O
do	O
this	O
is	O
with	O
a	O
NuGet	B-Application
package	O
.	O
</s>
<s>
Note	O
that	O
the	O
code	O
samples	O
in	O
this	O
section	O
are	O
shown	O
in	O
C#	B-Application
.	O
</s>
<s>
Unlike	O
co-located	O
or	O
dedicated	O
topologies	O
,	O
the	O
cache	O
is	O
not	O
hosted	O
on	O
Windows	O
Azure	O
roles	O
in	O
a	O
single	O
cloud	B-Architecture
service	I-Architecture
deployment	O
.	O
</s>
<s>
Shared	O
Caching	O
provides	O
a	O
way	O
for	O
multiple	O
cloud	B-Architecture
services	I-Architecture
to	O
access	O
the	O
same	O
cache	O
.	O
</s>
<s>
Windows	B-Application
Azure	I-Application
Caching	I-Application
has	O
its	O
roots	O
in	O
an	O
on-premises	B-General_Concept
technology	O
,	O
AppFabric	B-Application
.	O
</s>
<s>
It	O
was	O
originally	O
released	O
as	O
one	O
of	O
several	O
Windows	O
Azure	O
AppFabric	B-Application
services	O
,	O
but	O
the	O
AppFabric	B-Application
designation	O
in	O
Windows	O
Azure	O
has	O
since	O
been	O
abandoned	O
.	O
</s>
<s>
Many	O
of	O
the	O
assembly	O
names	O
,	O
namespaces	O
,	O
and	O
APIs	O
are	O
identical	O
between	O
Windows	B-Application
Azure	I-Application
Caching	I-Application
and	O
AppFabric	B-Application
Caching	I-Application
.	O
</s>
<s>
In	O
October	O
2012	O
,	O
support	O
was	O
added	O
for	O
hosting	O
Caching	O
on	O
roles	O
within	O
a	O
cloud	B-Architecture
service	I-Architecture
deployment	O
.	O
</s>
<s>
This	O
is	O
now	O
called	O
Windows	B-Application
Azure	I-Application
Caching	I-Application
.	O
</s>
<s>
Windows	B-Application
Azure	I-Application
Caching	I-Application
is	O
related	O
to	O
other	O
Microsoft	O
caching	O
technologies	O
.	O
</s>
<s>
Caching	O
Technology	O
Target	O
Installed	O
By	O
Description	O
AppFabric	B-Application
Caching	I-Application
On-Premises	B-General_Concept
AppFabric	B-Application
Distributed	O
on-premises	B-General_Concept
cache	O
that	O
uses	O
servers	O
that	O
the	O
user	O
provisions	O
and	O
manages	O
.	O
</s>
<s>
Windows	B-Application
Azure	I-Application
Caching	I-Application
Cloud	B-Architecture
Windows	O
Azure	O
SDK	O
Caching	O
is	O
distributed	O
across	O
the	O
instances	O
of	O
a	O
single	O
role	O
in	O
a	O
Windows	O
Azure	O
cloud	B-Architecture
service	I-Architecture
deployment	O
.	O
</s>
<s>
Windows	O
Azure	O
Shared	O
Caching	O
Cloud	B-Architecture
Windows	O
Azure	O
SDK	O
Caching	O
is	O
provided	O
as	O
a	O
multitenant	O
service	O
for	O
use	O
by	O
Windows	O
Azure	O
cloud	B-Architecture
services	I-Architecture
.	O
</s>
