You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the application the RedisL1Database constructor gets called with no errors. However it does not seems like the in-memory cache layer is being used at all and Redis is instead being used as normal. Expecting the console to write mem cache hits. Also tired to set breakpoints inside L1 project with no hits.
I'm are running master of this project with Microsoft.Extensions.Caching.StackExchangeRedis/6.0.1 and StackExchange.Redis/2.2.4.
Should L1 work with ASP.NET Core distributed cache?
Is there anything wrong in my configuration?
The text was updated successfully, but these errors were encountered:
martingust
changed the title
Use L1 with
Use L1 with ASP.NET Core distributed cache.
Sep 9, 2022
martingust
changed the title
Use L1 with ASP.NET Core distributed cache.
Use L1 with ASP.NET Core distributed cache
Sep 9, 2022
Hi @martingust - I'm afraid support for the ConnectionMultiplexer isn't there. .NET is calling the GetDatabase() method itself - your RedisL1Database instance isn't used.
To support it we'd have to create an implementation of IConnectionMultiplexer where the GetDatabase() returns RedisL1Database instances.
Hi @martingust - I'm afraid support for the ConnectionMultiplexer isn't there. .NET is calling the GetDatabase() method itself - your RedisL1Database instance isn't used.
To support it we'd have to create an implementation of IConnectionMultiplexer where the GetDatabase() returns RedisL1Database instances.
Hey @johnnycardy! Ok, thanks for your reply! We will look into how we can them working together.
I cannot get
StrackRedis.L1
to work with ASP.NET Core distributed cache.It's configured as following:
When running the application the
RedisL1Database
constructor gets called with no errors. However it does not seems like the in-memory cache layer is being used at all and Redis is instead being used as normal. Expecting the console to write mem cache hits. Also tired to set breakpoints inside L1 project with no hits.I'm are running master of this project with Microsoft.Extensions.Caching.StackExchangeRedis/6.0.1 and StackExchange.Redis/2.2.4.
Should L1 work with ASP.NET Core distributed cache?
Is there anything wrong in my configuration?
The text was updated successfully, but these errors were encountered: