Example #1
0
        private static string GetKey(Expression expression, params object[] keyParams)
        {
            string key;

            try
            {
                key = new ExpressionCacheKeyGenerator(expression).GetKey(keyParams);
            }
            catch (TargetInvocationException)
            {
                key = new StringCacheKeyGenerator().GetKey(keyParams);
            }

            return(key.ToMd5Hash());
        }