public int GetCategoryLftById(int siteId, int id) { //添加ID映射 var key = catIdKey(siteId, id); return(Kvdb.GetInt(key)); }
public int GetCategoryLftById(int siteId, int id) { //添加ID映射 string key = this.catIdKey(siteId, id); return(Kvdb.GetInt(key)); }
public int GetCategoryLftByTag(int siteId, string tag) { this.ChkPreload(); string key = this.catTagKey(siteId, tag); return(Kvdb.GetInt(key)); }
public int GetCategoryLftById(int siteId, int id) { //添加ID映射 string key = String.Format("{0}+cache_id_lft_{1}", siteId.ToString(), id.ToString()); return(Kvdb.GetInt(key)); }
public int GetCategoryLftByTag(int siteId, string tag) { if (RepositoryDataCache._categories == null) { GetCategoryDictionary(); } string key = String.Format("{0}:cache:t:lft:{1}", siteId.ToString(), tag); return(Kvdb.GetInt(key)); }
public int GetCategoryLftById(int siteId, int id) { if (RepositoryDataCache._categories == null) { GetCategoryDictionary(); } //添加ID映射 string key = String.Format("{0}:cache:id:lft:{1}", siteId.ToString(), id.ToString()); return(Kvdb.GetInt(key)); }
public int GetCategoryLftByTag(int siteId, string tag) { string key = String.Format("{0}+cache_t_lft_{1}", siteId.ToString(), tag); return(Kvdb.GetInt(key)); }