ComplianceServer/oldcode/IBLL/Redis/IRedisHashHelper.cs

18 lines
614 B
C#

using System.Threading.Tasks;
using WX.CRM.Model.EntitySync;
using WX.CRM.Model.Redis;
namespace WX.CRM.IBLL.Redis
{
public interface IRedisHashHelper
{
T Get<T>(string key) where T : class, new();
T Get<T>(string key, RedisConfig config) where T : class, new();
Task<T> GetAsync<T>(string key) where T : class, new();
Task<T> GetAsync<T>(string key, RedisConfig config) where T : class, new();
bool AddToCache(REDIS_CACHE_SSODATASYNC info);
bool UpdateCache(REDIS_CACHE_SSODATASYNC info);
bool DeleteCache(REDIS_CACHE_SSODATASYNC info);
}
}