1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156 |
- using CP.Model;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CP.Business
- {
- #region 枚举类型
-
-
-
- public enum CachePrefix
- {
-
-
-
- system,
-
-
-
- user,
-
-
-
- forum,
-
-
-
- fcsd,
-
-
-
- tcp3,
-
-
-
- tcp5,
-
-
-
- fcssq,
-
-
-
- tcdlt,
-
-
-
- fcqlc,
-
-
-
- tcqxc,
-
-
-
- fcdf61,
-
-
-
- fcgdhc1,
-
-
-
- fchd15x5,
-
-
-
- fcgd11x5,
-
-
-
- tcjs7ws,
-
-
-
- tczj61,
-
-
-
- tczj20x5,
-
-
-
- tcfj31x7,
-
-
-
- tcfj36x7,
-
-
-
- tcfj22x5,
-
-
-
- tchlj61,
-
-
-
- fchn22x5,
-
-
-
- fchb22x5,
-
-
-
- fchb30x5,
-
-
-
- fcxj35x7,
-
-
-
- fcny36x7,
-
-
-
- fchljp62,
-
-
-
- fcgxklsc,
-
-
-
- fcxj25x7,
-
-
-
- fchbk3,
-
-
-
- tchb11x5,
-
-
-
- tcsd11x5,
-
-
-
- fcgxk3,
-
-
-
- fcgxklsf,
-
-
-
- expert,
-
-
-
- news,
-
-
-
- score,
-
-
-
- DataIndex,
-
-
-
-
- kjh,
-
-
-
- tv,
-
-
-
- Advert,
- }
-
-
-
-
- public enum CacheTime : int
- {
-
-
-
- Const = 24 * 60 * 3,
-
-
-
-
- System = 900,
-
-
-
-
-
- Data = 700,
-
-
-
-
- MissData = 600,
-
-
-
-
-
- Page = 500,
-
-
-
-
- Score = 600,
-
-
-
- News = 300,
-
-
-
-
- Mintime = 60,
-
-
-
- Forum = 60,
-
-
-
- Kjh = 30,
-
-
-
- UserCollect = 30,
-
-
-
- RandomMenu = 20,
-
-
-
- hf = 20,
-
-
-
-
- Expert = 10,
-
-
-
-
- NewManager = 30
- }
- #endregion
- public class CacheKeys
- {
- #region 系统Cache
-
-
-
- public static string SYSTEM_CONFIG = $"{CachePrefix.system.ToString()}-data-config";
-
-
-
- public static string SYSTEM_OAUTH_QQ = $"{CachePrefix.system.ToString()}-data-oauth-qq";
-
-
-
- public static string SYSTEM_OAUTH_SINA = $"{CachePrefix.system.ToString()}-data-oauth-sina";
-
-
-
- public static string SYSTEM_MENUS = $"{CachePrefix.system.ToString()}-data-menus";
-
-
-
- public static string SYSTEM_MENUS_HZ = $"{CachePrefix.system.ToString()}-menus-hz";
-
-
-
- public static string SYSTEM_MENUS_RANDOM = $"{CachePrefix.system.ToString()}-menus-random_menulist_{0}";
-
-
-
- public static string SYSTEM_MOBILE_MENUS = $"{CachePrefix.system.ToString()}-menus-mobile";
-
-
-
- public static string SYSTEM_MENUS_GX = $"{CachePrefix.system.ToString()}-menus-gx";
-
-
-
- public static string SYSTEM_MENUSVIEWS = $"{CachePrefix.system.ToString()}-data-menus-views";
-
-
-
- public static string SYSTEM_CZCLASS = $"{CachePrefix.system.ToString()}-data-czclass";
-
-
-
-
- public static string SYSTEM_TZCLASS = $"{CachePrefix.system.ToString()}-data-tzclass";
-
-
-
- public static string SYSTEM_PUBLIC_CZ_CONFIG = $"{CachePrefix.system.ToString()}-data-publicczconfig";
-
-
-
- public static string SYSTEM_QI_SHU_CONFIG = $"{CachePrefix.system.ToString()}-data-QiShuConfig";
-
-
-
- public static string SYSTEM_URL_REDIRECT = $"{CachePrefix.system.ToString()}-data-urlredirect";
-
-
-
- public static string SYSTEM_KJH_URL = $"{CachePrefix.system.ToString()}-data-kjhurl";
-
-
-
- public static string SYSTEM_MOBILE_DATA_SEO = $"{CachePrefix.system.ToString()}-data-mobile-zjdata-seo";
-
-
-
- public static string SYSTEM_NOUNEXPLANATION = $"{CachePrefix.system.ToString()}-data-nounexplanation";
- #endregion
- #region 静态文件
- public static string Static_File = "/data/staticfile";
- #endregion
- #region 资讯-帮助
-
-
-
- public static string NEWS_CLASSLIST = $"{CachePrefix.news.ToString()}-data-classlist";
-
-
-
- public static string NEWS_THEMELIST = $"{CachePrefix.news.ToString()}-data-themelist";
-
-
-
- public static string NEWS_LIST = $"{CachePrefix.news.ToString()}-data-newslist";
-
-
-
- public static string NEWS_PAGELIST = $"{CachePrefix.news.ToString()}-data-newspagelist-{0}";
- #endregion
- #region 福彩3D
-
-
-
- public static string FCSD_DATALIST = $"{QGEnum.fcsd.ToString()}-data";
-
-
-
-
- public static string FCSD_DATALIST_ALL = $"{QGEnum.fcsd.ToString()}-data-all";
-
-
-
- public static string FCSD_MISS_DATA = $"{QGEnum.fcsd.ToString()}-data-miss";
-
-
-
- public static string FCSD_ZXNUMMISS = $"{QGEnum.fcsd.ToString()}-data-miss-zxnum";
-
-
-
- public static string FCSD_KJH_DATA = $"{QGEnum.fcsd.ToString()}-data-kjh";
-
-
-
- public static string FCSD_SJHJM_DATA = $"{QGEnum.fcsd.ToString()}-data-kjh-sjhjm";
-
-
-
- public static string FCSD_NIUDAN_DATA = $"{QGEnum.fcsd.ToString()}-data-kjh-niudan";
-
-
-
- public static string FCSD_DC_DATA = $"{QGEnum.fcsd.ToString()}-data-dc";
- #endregion
- #region 体彩P3
-
-
-
- public static string TCP3_DATALIST = $"{QGEnum.tcp3.ToString()}-data";
-
-
-
-
- public static string TCP3_DATALIST_ALL = $"{QGEnum.tcp3.ToString()}-data-all";
-
-
-
- public static string TCP3_MISS_DATA = $"{QGEnum.tcp3.ToString()}-data-miss";
-
-
-
- public static string TCP3_ZXNUMMISS = $"{QGEnum.tcp3.ToString()}-data-miss-zxnum";
-
-
-
- public static string TCP3_KJH_DATA = $"{QGEnum.tcp3.ToString()}-data-kjh";
-
-
-
- public static string TCP3_DC_DATA = $"{QGEnum.tcp3.ToString()}-data-dc";
-
-
-
- public static string TCP3_MISS_DATA_HZ = $"{QGEnum.tcp3.ToString()}-data-miss-HZ-";
- public static string TCP3_MISS_DATA_ZH = $"{QGEnum.tcp3.ToString()}-data-miss-ZH-";
- public static string TCP3_MISS_DATA_SZ = $"{QGEnum.tcp3.ToString()}-data-miss-SZ-";
- public static string TCP3_MISS_DATA_KD = $"{QGEnum.tcp3.ToString()}-data-miss-KD-";
- public static string TCP3_MISS_DATA_012 = $"{QGEnum.tcp3.ToString()}-data-miss-012-";
- public static string TCP3_MISS_DATA_HZHW = $"{QGEnum.tcp3.ToString()}-data-miss-HZHW-";
- #endregion
- #region 双色球
-
-
-
- public static string FCSSQ_DATALIST = $"{QGEnum.fcssq.ToString()}-data";
-
-
-
- public static string SYSTEM_FCSSQ_JZNUMBER = $"{QGEnum.fcssq.ToString()}-data-xzjz";
-
-
-
- public static string FCSSQ_MISS_DATA = $"{QGEnum.fcssq.ToString()}-data-miss-";
-
-
-
- public static string FCSSQ_KJH_DATA = $"{QGEnum.fcssq.ToString()}-data-kjh";
- #endregion
- #region 大乐透
-
-
-
- public static string TCDLT_DATALIST = $"{QGEnum.tcdlt.ToString()}-data";
-
-
-
- public static string SYSTEM_TCDLT_JZNUMBER = $"{QGEnum.tcdlt.ToString()}-data-xzjz";
-
-
-
- public static string TCDLT_MISS_DATA = $"{QGEnum.tcdlt.ToString()}-data-miss";
-
-
-
- public static string TCDLT_KJH_DATA = $"{QGEnum.tcdlt.ToString()}-data-kjh";
- #endregion
- #region 七乐彩
-
-
-
- public static string FCQLC_DATALIST = $"{QGEnum.fcqlc.ToString()}-data";
-
-
-
- public static string SYSTEM_FCQLC_JZNUMBER = $"{QGEnum.fcqlc.ToString()}-data-xzjz";
-
-
-
- public static string FCQLC_MISS_DATA = $"{QGEnum.fcqlc.ToString()}-data-miss";
-
-
-
- public static string FCQLC_KJH_DATA = $"{QGEnum.fcqlc.ToString()}-data-kjh";
- #endregion
- #region 七星彩
-
-
-
- public static string TCQXC_DATALIST = $"{QGEnum.tcqxc.ToString()}-data";
-
-
-
- public static string TCQXC_MISS_DATA = $"{QGEnum.tcqxc.ToString()}-data-miss";
-
-
-
- public static string TCQXC_KJH_DATA = $"{QGEnum.tcqxc.ToString()}-data-kjh";
- #endregion
- #region 东方6+1
-
-
-
- public static string FCDF61_DATALIST = $"{DFEnum.fcdf61.ToString()}-data";
-
-
-
- public static string FCDF61_KJH_DATA = $"{DFEnum.fcdf61.ToString()}-data-kjh";
- #endregion
- #region 广东好彩1
-
-
-
- public static string DFGDHC1_DATALIST = $"{DFEnum.gdhc1.ToString()}-data";
-
-
-
- public static string DFGDHC1_MISS_DATA = $"{DFEnum.gdhc1.ToString()}-data-miss";
-
-
-
- public static string DFGDHC1_KJH_DATA = $"{DFEnum.gdhc1.ToString()}-data-kjh";
- #endregion
- #region 华东15选5
-
-
-
- public static string FCHD15X5_DATALIST = $"{DFEnum.fchd15x5.ToString()}-data";
-
-
-
- public static string FCHD15X5_KJH_DATA = $"{DFEnum.fchd15x5.ToString()}-data-kjh";
- #endregion
- #region 广东11选5
-
-
-
- public static string FCGD11X5_DATALIST = $"{GPEnum.tcgd11x5.ToString()}-data";
- #endregion
- #region 广西快3
-
-
-
- public static string Fcgxk3_DATALIST = $"{GPEnum.fcgxk3.ToString()}-data";
- #endregion
- #region 山东11x5
-
-
-
- public static string Tcsd11x5_DATALIST = $"{GPEnum.tcsd11x5.ToString()}-data";
- #endregion
- #region 江苏7位数
-
-
-
- public static string TCJS7WS_DATALIST = $"{DFEnum.tcjs7ws.ToString()}-data";
-
-
-
- public static string TCJS7WS_KJH_DATA = $"{DFEnum.tcjs7ws.ToString()}-data-kjh";
- #endregion
- #region 浙江6+1
-
-
-
- public static string TCZJ61_DATALIST = $"{DFEnum.tczj61.ToString()}-data";
-
-
-
- public static string TCZJ61_KJH_DATA = $"{DFEnum.tczj61.ToString()}-data-kjh";
- #endregion
- #region 福建31选7
-
-
-
- public static string TCFJ31X7_DATALIST = $"{DFEnum.tcfj31x7.ToString()}-data";
-
-
-
- public static string TCFJ31X7_KJH_DATA = $"{DFEnum.tcfj31x7.ToString()}-data-kjh";
- #endregion
- #region 福建36选7
-
-
-
- public static string TCFJ36X7_DATALIST = $"{DFEnum.tcfj36x7.ToString()}-data";
-
-
-
- public static string TCFJ36X7_KJH_DATA = $"{DFEnum.tcfj36x7.ToString()}-data-kjh";
- #endregion
- #region 河南22选5
-
-
-
- public static string FCHN22X5_DATALIST = $"{DFEnum.fchn22x5.ToString()}-data";
-
-
-
- public static string FCHN22X5_KJH_DATA = $"{DFEnum.fchn22x5.ToString()}-data-kjh";
- #endregion
-
- #region 海南4+1
-
-
-
- public static string TCHN41_DATALIST = $"{DFEnum.tchn41.ToString()}-data";
-
-
-
- public static string TCHN41_KJH_DATA = $"{DFEnum.tchn41.ToString()}-data-kjh";
- #endregion
- #region 黑龙江22选5
-
-
-
- public static string FCHLJ22X5_DATALIST = $"{DFEnum.fchlj22x5.ToString()}-data";
-
-
-
- public static string FCHLJ22X5_KJH_DATA = $"{DFEnum.fchlj22x5.ToString()}-data-kjh";
- #endregion
- #region 湖北22选5
-
-
-
- public static string FCHB22X5_DATALIST = $"{CachePrefix.fchb22x5.ToString()}-data";
-
-
-
- public static string FCHB22X5_KJH_DATA = $"{CachePrefix.fchb22x5.ToString()}-data-kjh";
- #endregion
-
- #region 安徽25选5
-
-
-
- public static string FCAH25X5_DATALIST = $"{DFEnum.fcah25x5.ToString()}-data";
-
-
-
- public static string FCAH25X5_KJH_DATA = $"{DFEnum.fcah25x5.ToString()}-data";
- #endregion
- #region 广东25选5
-
-
-
- public static string FCGD26X5_DATALIST = $"{CachePrefix.fchb22x5.ToString()}-data";
-
-
-
- public static string FCGD26X5_KJH_DATA = $"{CachePrefix.fchb22x5.ToString()}-data-kjh";
- #endregion
- #region 新疆35x7
-
-
-
- public static string FCXJ35X7_DATALIST = $"{DFEnum.fcxj35x7.ToString()}-data";
-
-
-
- public static string FCXJ35X7_KJH_DATA = $"{DFEnum.fcxj35x7.ToString()}-data-kjh";
- #endregion
- #region 深圳35x7
-
-
-
- public static string FCSZFC35X7_DATALIST = $"{DFEnum.fcny36x7.ToString()}-data";
-
-
-
- public static string FCSZFC35X7_KJH_DATA = $"{DFEnum.fcny36x7.ToString()}-data-kjh";
- #endregion
- #region 辽宁35x7
-
-
-
- public static string FCLN35X7_DATALIST = $"{DFEnum.fcln35x7.ToString()}-data";
-
-
-
- public static string FCLN35X7_KJH_DATA = $"{DFEnum.fcln35x7.ToString()}-data-kjh";
- #endregion
- #region 南粤36x7
-
-
-
- public static string FCNY36X7_DATALIST = $"{DFEnum.fcny36x7.ToString()}-data";
-
-
-
- public static string FCNY36X7_KJH_DATA = $"{DFEnum.fcny36x7.ToString()}-data-kjh";
- #endregion
-
- #region 黑龙江36x7
-
-
-
- public static string FCHLJ36X7_DATALIST = $"{DFEnum.fcny36x7.ToString()}-data";
-
-
-
- public static string FCHLJ36X7_KJH_DATA = $"{DFEnum.fcny36x7.ToString()}-data-kjh";
- #endregion
-
- #region 湖北30选5
-
-
-
- public static string Fchb30x5_DATALIST = $"{DFEnum.fchb30x5.ToString()}-data";
-
-
-
- public static string Fchb30x5_KJH_DATA = $"{DFEnum.fchb30x5.ToString()}-data-kjh";
- #endregion
- #region 黑龙江6+1
-
-
-
- public static string TCHLJ61_DATALIST = $"{DFEnum.tchlj61.ToString()}-data";
-
-
-
- public static string TCHLJ61_KJH_DATA = $"{DFEnum.tchlj61.ToString()}-data-kjh";
- #endregion
- #region 黑龙江P62
-
-
-
- public static string FCHLJP62_DATALIST = $"{DFEnum.fchljp62.ToString()}-data";
-
-
-
- public static string FCHLJP62_KJH_DATA = $"{DFEnum.fchljp62.ToString()}-data-kjh";
- #endregion
- #region 浙江20选5
-
-
-
- public static string TCZJ20X5_DATALIST = $"{DFEnum.tczj20x5.ToString()}-data";
-
-
-
- public static string TCZJ20X5_KJH_DATA = $"{DFEnum.tczj20x5.ToString()}-data-kjh";
- #endregion
- #region 浙江20选5
-
-
-
- public static string Fchebei20X5_DATALIST = $"{DFEnum.fchebei20x5.ToString()}-data";
-
-
-
- public static string Fchebei20X5_KJH_DATA = $"{DFEnum.fchebei20x5.ToString()}-data-kjh";
- #endregion
- #region 福建22选5
-
-
-
- public static string TCFJ22X5_DATALIST = $"{DFEnum.tcfj22x5.ToString()}-data";
-
-
-
- public static string TCFJ22X5_KJH_DATA = $"{DFEnum.tcfj22x5.ToString()}-data-kjh";
- #endregion
- #region 广西快乐双彩
-
-
-
- public static string FCGXKLSC_DATALIST = $"{DFEnum.fcgxklsc.ToString()}-data";
-
-
-
- public static string FCGXKLSC_KJH_DATA = $"{DFEnum.fcgxklsc.ToString()}-data-kjh";
- #endregion
- #region 新疆25选7
-
-
-
- public static string FCXJ25X7_DATALIST = $"{DFEnum.fcxj25x7.ToString()}-data";
-
-
-
- public static string FCXJ25X7_KJH_DATA = $"{DFEnum.fcxj25x7.ToString()}-data-kjh";
- #endregion
- #region 新疆18选7
-
-
-
- public static string FCXJ18X7_DATALIST = $"{DFEnum.fcxj18x7.ToString()}-data";
-
-
-
- public static string FCXJ18X7_KJH_DATA = $"{DFEnum.fcxj18x7.ToString()}-data-kjh";
- #endregion
- #region 河北排列5
-
-
-
- public static string FFCHEBEIPL5_DATALIST = $"{DFEnum.fchebeipl5.ToString()}-data";
- #endregion
- #region 河北排列7
-
-
-
- public static string FCHEBEIPL7_DATALIST = $"{DFEnum.fchebeipl7.ToString()}-data";
- #endregion
-
- #region 河北好运彩2
-
-
-
- public static string FCHEBEIHYC2_DATALIST = $"{DFEnum.fchebeihyc2.ToString()}-data";
- #endregion
- #region 河北好运彩3
-
-
-
- public static string FCHEBEIHYC3_DATALIST = $"{DFEnum.fchebeihyc3.ToString()}-data";
- #endregion
- #region 上海天天彩选4
-
-
-
- public static string FCSHTTCX4_DATALIST = $"{DFEnum.fcshttc4.ToString()}-data";
- #endregion
- #region 香港彩
-
-
-
- public static string FCHK6_DATALIST = $"{DFEnum.hk6.ToString()}-data";
- #endregion
- #region 北京快中彩
-
-
-
- public static string TCBJKZC_DATALIST = $"{GPEnum.tcbjkzc.ToString()}-data";
- #endregion
- #region lg 走势图集list
-
-
-
- public static string zsindex = "zsindex";
-
-
-
- public static string zsalllist = "zsalllist-{0}";
-
-
-
- public static string ylgjtb = "ylgjtb-{0}";
-
-
-
- public static string zssj = "zssj-{0}";
-
-
-
- public static string ares = "ares";
-
-
-
- public static string ares_id = "ares_id-{0}";
-
-
-
- public static string ares_name = "ares_name-{0}";
-
-
-
- public static string ares_id_cz = "ares_id_cz-{0}";
-
-
-
- public static string Help = "Help";
-
-
-
- public static string Notice = "Notice";
- #endregion
- #region 专题相关
- public static string Zt_Column = "Zt_Column";
- public static string Zt_Picture = "Zt_Picture";
- public static string Zt_Page = "Zt_Page";
- #endregion
-
- #region czx 术语和技巧
-
-
-
- public static string TermList = "TermList";
-
-
-
- public static string SkillsList = "SkillsList";
-
-
-
- public static string SkillsTypeNameList = "SkillsTypeNameList";
-
-
-
- public static string SkillsContenteList = "SkillsContenteList";
- #endregion
- #region 新闻
-
-
-
- public static string NewManagerListList = "NewManagerListList";
-
-
-
- public static string NewList = "NewList";
- #endregion
-
-
-
- public static string CzAll = $"CzAll";
-
-
-
- public static string Advert = $"{CachePrefix.Advert.ToString()}-data-{0}";
- }
- }
|