Exemplo n.º 1
0
 public async Task HandleUnsubscribeEvent(UnsubscribeEvent e)
 {
     await _cache.RemoveAsync(CacheKeyStore.ScheduleFollowings(e.ParentId));
 }
Exemplo n.º 2
0
 public async Task <IEnumerable <ScheduleFollowingDto> > GetScheduleFollowings(long id)
 {
     return(await _cache.GetValueOrCreateAsync(CacheKeyStore.ScheduleFollowings(id),
                                               3600 * 24,
                                               () => GetCacheScheduleFollowings(id)));
 }
Exemplo n.º 3
0
        public async Task HandleNewSubscriberEvent(NewSubscriberEvent e)
        {
            var id = await _repository.FindByUUID <Schedule>(e.ParentScheduleUuid).Select(x => x.Id).FirstOrDefaultAsync();

            await _cache.RemoveAsync(CacheKeyStore.ScheduleFollowings(id));
        }