You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
644 B

  1. using System;
  2. namespace CounsellorBL.Helper
  3. {
  4. public static class CSRedisHelper
  5. {
  6. private static object _lock = new object();
  7. public static string GetString(string i_sKey, out string o_sValue)
  8. {
  9. string sMsg = null;
  10. string sValueTemp = null;
  11. try
  12. {
  13. lock(_lock)
  14. {
  15. sValueTemp = RedisHelper.Get(i_sKey);
  16. }
  17. }
  18. catch(Exception ex)
  19. {
  20. sMsg = ex.Message;
  21. }
  22. o_sValue = sValueTemp;
  23. return sMsg;
  24. }
  25. }
  26. }