Exemplo n.º 1
0
 /// <summary>
 /// commonfile redis写对象
 /// </summary>
 /// <returns></returns>
 public static ICommonFileRedis CreateWriteFilesRedis()
 {
     if (commonFileRedisWrite == null)
     {
         lock (obj)
         {
             if (commonFileRedisWrite == null)
                 commonFileRedisWrite = new CommonFileRA(redis_basiccomments_write_host_key, redis_basiccomments_write_port_key, redis_basiccomments_write_pwd_key);
         }
     }
     return commonFileRedisWrite;
 }
Exemplo n.º 2
0
 /// <summary>
 /// commonfile redis读对象
 /// </summary>
 /// <returns></returns>
 public static ICommonFileRedis CreateReadFilesRedis()
 {
     if (commonFileRedisRead == null)
     {
         lock (obj)
         {
             if (commonFileRedisRead == null)
             {
                 commonFileRedisRead = new CommonFileRA(redis_basiccomments_read_host_key, redis_basiccomments_read_port_key, redis_basiccomments_read_pwd_key);
             }
         }
     }
     return commonFileRedisRead;
 }