Exemplo n.º 1
0
        public static Boolean IsExpried( String key, ICacheHelper cacher )
        {
            if (key.StartsWith( "/Forum" )) {
                ForumExpirationChecker fcc = new ForumExpirationChecker( cacher );
                return fcc.IsExpried( key );
            }
            else if (key.StartsWith( "/Content" )) {
                ContentExpirationChecker fcc = new ContentExpirationChecker( cacher );
                return fcc.IsExpried( key );
            }

            else {

                return false;
            }
        }
Exemplo n.º 2
0
        public static Boolean IsExpried(String key, ICacheHelper cacher)
        {
            if (key.StartsWith("/Forum"))
            {
                ForumExpirationChecker fcc = new ForumExpirationChecker(cacher);
                return(fcc.IsExpried(key));
            }
            else if (key.StartsWith("/Content"))
            {
                ContentExpirationChecker fcc = new ContentExpirationChecker(cacher);
                return(fcc.IsExpried(key));
            }

            else
            {
                return(false);
            }
        }