Recently, the company's project was using cloud Service, so we studied the configuration and use of the Azure cache.
Create a project first
The second step configures the cache worker role
(1) Click the Properties setting of the Cache worker role project.
(2) Attribute caching settings
The third step is to add the code to the Web. config configuration file (identifier should be the cache role name or Service Endpoint) we are using the cache role name to say yes identifier= "Cacheworkerrole".
<dataCacheClients>
<datacacheclient name= "Default" >
<autodiscover isenabled= "true" identifier= "Cacheworkerrole"/>
</dataCacheClient>
</dataCacheClients>
<cacheDiagnostics>
<crashdump dumplevel= "Off" dumpstoragequotainmb= "/>"
</cacheDiagnostics>
Fourth step download the Azure cache package
Fifth step: Start writing your own cache code
Configuration and application of Azure cache