using Bootstrap.Security; using Bootstrap.Security.DataAccess; using Longbow.Cache; namespace Bootstrap.Client.DataAccess { /// /// 用户表相关操作类 /// public static class UserHelper { private const string RetrieveUsersByNameDataKey = "BootstrapUser-RetrieveUsersByName"; /// /// /// /// /// public static BootstrapUser RetrieveUserByUserName(string userName) => CacheManager.GetOrAdd(string.Format("{0}-{1}", RetrieveUsersByNameDataKey, userName), k => DbHelper.RetrieveUserByUserName(userName), RetrieveUsersByNameDataKey); } }