Closed RahmanM closed 6 years ago
Sorry, my previous comment was wrong.
What you are looking for is the keyspace notification api: https://github.com/thepirat000/CachingFramework.Redis/blob/master/README.md#keyspace-notifications-api
Ah thanks,
That is what I was exactly looking for, not sure why I didn't see this section of documentation in the first place. I have already enabled notify-keyspace-events but possibly using it the wrong way. I give it another try and let you know.
TA
you must enable keyspace notification in the redis server(s). Check https://redis.io/topics/notifications#configuration Get Outlook for Androidhttps://aka.ms/ghei36
From: RahmanM notifications@github.com Sent: Saturday, December 30, 2017 4:44:45 PM To: thepirat000/CachingFramework.Redis Cc: Federico Daniel Colombo; Comment Subject: Re: [thepirat000/CachingFramework.Redis] Get callback when item is removed from the cache? (#39)
Ah thanks,
That is what I was exactly looking for, not sure why I didn't see this section of documentation in the first place. I have already enabled notify-keyspace-events but possibly using it the wrong way. I give it another try and let you know.
TA
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/thepirat000/CachingFramework.Redis/issues/39#issuecomment-354572776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJYXXLp0tBnNvkUzpZrT14UkYdaNAdIbks5tFrzdgaJpZM4RPkwl.
Thanks, this perfectly works.
Hi there,
I can't see if there is a way to get callback when item is removed from the cache? This will be a very nice feature if can be done easily?
ta