Closed RahmanM closed 7 years ago
Hi @RahmanM, Sorry for the late reply, I hope you found the answer already. CacheManager only registers to key events if configured explicitly.
Using the following should fix it
.WithRedisConfiguration("redis", config =>
{
config
.WithAllowAdmin()
.EnableKeyspaceEvents() // enables the events
.WithDatabase(0)
.WithEndpoint("localhost", 6379);
})
Hi, When item is removed from cache the callback doesn't work. The event is never fired? Using the plain Redis it works though see below: