using Znyc.CloudCar.Model.Dtos.Banner;
using Znyc.CloudCar.Model.Dtos.CardIntro;
using Znyc.CloudCar.Model.Dtos.Certification;
using Znyc.CloudCar.Model.Dtos.Dictionary;
using Znyc.CloudCar.Model.Dtos.Recharge;
using Znyc.CloudCar.Model.Dtos.User;
using Znyc.CloudCar.Model.Entities;
namespace Znyc.CloudCar.IServices.CaChe
{
public interface ICacheService
{
#region Dictionary
///
/// 设置数据字典缓存
///
///
///
Task SetDictionaryAsync(List output);
///
/// 获取数据字典缓存
///
///
Task> GetDictionaryAsync();
///
/// 删除数据字典缓存
///
///
Task RemoveDictionaryAsync();
#endregion
#region User
///
/// 设置用户缓存
///
///
///
///
Task SetUserAsync(long userId, UserOutput user);
///
/// 删除用户缓存
///
///
///
Task RemoveUserAsync(long userId);
///
/// 获取用户缓存
///
///
///
Task GetUserAsync(long userId);
#endregion User
#region PageView
///
/// 同步浏览量缓存
///
///
///
///
Task SetPageViewAsync(string member, double score);
///
/// 浏览量自增
///
///
///
Task SetIncrPageViewAsync(long productId);
///
/// 删除浏览量缓存
///
///
Task RemovePageViewAsync();
///
/// 获取浏览量缓存
///
///
///
///
Task> GetPageViewAsync();
///
/// 获取浏览量总条数缓存
///
///
Task GetPageViewCountAsync();
#endregion PageView
#region Browse
///
/// 获取浏览记录总条数缓存
///
///
///
Task GetBrowseCountAsync(long userId);
///
/// 设置浏览记录缓存
///
///
///
///
///
Task SetBrowseAsync(long userId, string member, double score);
///
/// 获取浏览记录缓存
///
///
///
///
///
Task> GetBrowseAsync(long userId);
#endregion
#region 实名认证
///
/// 设置实名认证缓存
///
///
///
///
Task SetCertificationAsync(long userId, CertificationOutput certificationOutput);
///
/// 删除实名认证缓存
///
///
///
Task RemoveCertificationAsync(long userId);
///
/// 获取实名认证缓存
///
///
///
Task GetCertificationAsync(long userId);
#endregion Certification
#region UnreadMessage
///
/// 同步未读信息缓存
///
///
///
///
Task SetUnreadMessageAsync(long userId, IDictionary list);
///
/// 修改未读信息缓存
///
///
///
///
///
Task UpdateUnreadMessageAsync(long userId, string filed, string value);
///
/// 删除未读信息缓存
///
///
///
Task RemoveUnreadMessageAsync(long userId);
///
/// 获取未读信息缓存
///
///
Task> GetUnreadMessageAsync(long userId);
#endregion UnreadMessage
#region 用户注册信息滚动提示
///
/// 设置注册用户list
///
///
///
Task SetRegistUserListAsync(string member, double score);
///
/// 获取注册用户list
///
///
Task> GetRegistUserListAsync(long start, long stop);
#endregion
#region Banner
///
/// 设置广告缓存
///
///
///
Task SetBannerListAsync(List list);
///
/// 获取广告缓存
///
///
Task> GetBannerListAsync();
///
/// 删除广告缓存
///
///
Task RemoveBannerListAsync();
#endregion
#region Recharge充值活动
///
/// 设置充值活动缓存
///
///
///
Task SetRechargeAsync(RechargeOutput output);
///
/// 获取充值活动缓存
///
///
Task GetRechargeAsync();
///
/// 删除充值活动缓存
///
///
Task RemoveRechargeAsync();
#endregion Recharge充值活动
#region 优惠卡信息
///
/// 设置优惠卡信息缓存
///
///
///
Task SetCardIntroListAsync(List list);
///
/// 获取优惠卡信息缓存
///
///
Task> GetCardIntroListAsync();
///
/// 删除优惠卡信息缓存
///
///
Task RemoveCardIntroListAsync();
#endregion
#region 用户修改次数
///
/// 同步用户修改次数缓存
///
///
///
Task SetUserUpdateCountAsync(string member, double score);
///
/// 用户修改次数自增
///
///
///
Task SetIncrUserUpdateCountAsync(long userId);
///
/// 删除用户修改次数缓存
///
///
Task RemoveUserUpdateCountAsync();
///
/// 获取用户修改次数缓存
///
///
Task> GetUserUpdateCountAsync();
#endregion UserUpdateCount
#region 设备管理
Task SetEquipmentAsync(EquipmentEntity equipment, long userId);
Task GetEquipmentAsync(long userId);
#endregion
}
}