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.
Hace 7 años
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.
Hace 7 años
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>
Hace 7 años
Any ideas?
Hace 7 años
You can use different Redis data bases. Look into MSFT documentation. You can specifiy db id in the conn string
Hace 7 años
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.
Hace 7 años
applicationName can be used as paramter in the add-Sections. So the cache will prefix alle keys with application name
Hace 7 años
[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 :-(
Hace 6 años
Did you solve it?
Hace 6 años
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.