数据库配置修改为tianyi
This commit is contained in:
@@ -318,13 +318,7 @@ public class DbLinkService : IDbLinkService, IDynamicApiController, ITransient
|
||||
[NonAction]
|
||||
public async Task<DbLinkEntity> GetInfo(string id)
|
||||
{
|
||||
var model = await _memCache.GetOrCreateAsync($"DbLink_{id}", async entry =>
|
||||
{
|
||||
//entry.AbsoluteExpiration = DateTime.Now.AddMinutes(60);
|
||||
//entry.SlidingExpiration = TimeSpan.FromSeconds(-1);
|
||||
return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
});
|
||||
return model;
|
||||
return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user