Redis cache setup? Several sites on 1 redis cache in azure?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi.

How do i differentiate between webapps for redis cache?

Right now i have 2 sites in test environment with the same host. Now products are shared between the solutions, and storenames.

<RedisCaching Enabled="False" ConnectionString="localhost"  />

Is there any nameproperty for this setting?

Creating one redis cache for every site will be very costly.
7 years ago
Can i add a applicationName to the following setting?

<sessionState mode="Custom" applicationName="MyWebSiteNr1" customProvider="MySessionStateStore">
      <providers>
        <add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="" ssl="true" />
      </providers>
    </sessionState>
7 years ago
Any ideas?
7 years ago
You can use different Redis data bases. Look into MSFT documentation. You can specifiy db id in the conn string
7 years ago
Ok.

Should i add what you call database ID to this:

<RedisCaching Enabled="False" ConnectionString="localhost" />

OR this:

<sessionState mode="Custom" customProvider="MySessionStateStore">
      <providers>
        <add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="" ssl="true" />
      </providers>
    </sessionState>



By the way: nopcommerce did report a problem using rediscache.
https://github.com/nopSolutions/nopCommerce/issues/1703
Fix here: https://github.com/nopSolutions/nopCommerce/commit/80102dc9e687758093a095d83b4d265b45e01afe

BUT I'm not sure if this means i dont have to add a database-id in webconfig though.
7 years ago
applicationName can be used as paramter in the add-Sections. So the cache will prefix alle keys with application name
7 years ago
[email protected] wrote:
applicationName can be used as paramter in the add-Sections. So the cache will prefix alle keys with application name


Unfortunatly that does not work as I tested meanwhile :-(
6 years ago
Did you solve it?
6 years ago
iob2000 wrote:
Did you solve it?


No, i got random errors while browsing the site if i remember it correctly.

I think i saw a ticket about the redis implementation being fixed for webshops in azure in next version.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.