public void HandleEvent(SendVerifyCodeEvent @event) { _redisHelper.StringSet(string.Format(KEY_VCODE_FMT, @event.VerifyCode.Mobile), @event.VerifyCode.Code, TimeSpan.FromMinutes(15)); }
public void HandleEvent(UserLoginEvent @event) { _redisHelper.StringSet(string.Format(ONLINE_USER_SIGN_KEY_FMT, @event.Signature), string.Format("{0}{1}", @event.UserId, @event.Token), TimeSpan.FromDays(31)); }
public void HandleEvent(DeviceRegEvent @event) { _redisHelper.StringSet(string.Format(KEY_DEV_FMT, @event.Signature), DateTime.Now.ToString("yyyyMMddHHmmss"), TimeSpan.FromDays(31)); }