コード例 #1
0
 public static byte[] Get_Bytes(string poolName, string key, bool compress = false)
 {
     try
     {
         MemcachedClient mc = MemcacheItem.GetInstance(poolName);
         mc.EnableCompression = compress;
         mc.PoolName          = poolName;
         return(mc.Get_Bytes(key));
     }
     catch (Exception ex)
     {
         LogEngine.Write(LOGTYPE.ERROR, "MemcacheItem Get_Bytes ex:", ex.ToString());
         return(null);
     }
 }