using System; namespace CounsellorBL.Helper { public static class CSRedisHelper { private static object _lock = new object(); public static string GetString(string i_sKey, out string o_sValue) { string sMsg = null; string sValueTemp = null; try { lock(_lock) { sValueTemp = RedisHelper.Get(i_sKey); } } catch(Exception ex) { sMsg = ex.Message; } o_sValue = sValueTemp; return sMsg; } } }