public void HandleEvent(RemoveReviewEvent @event) { if (Utils.GetTheDay(DateTime.Now.AddDays(-10)) < @event.TheDay) { _redisHelper.HashDecrement( string.Format(KEY_EVAL_MOTTO_FMT, @event.TheDay, @event.Review), F_REVIEWS); } }
public void HandleEvent(UnLoveCollectionEvent @event) { _redisHelper.HashDecrement(string.Format(KEY_COLLECTION_FMT, @event.LoveCollection.CID), F_LOVES); }