Exemplo n.º 1
0
        public int GetCategoryLftById(int siteId, int id)
        {
            //添加ID映射
            var key = catIdKey(siteId, id);

            return(Kvdb.GetInt(key));
        }
Exemplo n.º 2
0
        public int GetCategoryLftById(int siteId, int id)
        {
            //添加ID映射
            string key = this.catIdKey(siteId, id);

            return(Kvdb.GetInt(key));
        }
Exemplo n.º 3
0
        public int GetCategoryLftByTag(int siteId, string tag)
        {
            this.ChkPreload();
            string key = this.catTagKey(siteId, tag);

            return(Kvdb.GetInt(key));
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
        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));
        }
Exemplo n.º 7
0
        public int GetCategoryLftByTag(int siteId, string tag)
        {
            string key = String.Format("{0}+cache_t_lft_{1}", siteId.ToString(), tag);

            return(Kvdb.GetInt(key));
        }