public static string CacheTypeToString(CacheImageDateType cacheImageDateType)
        {
            switch (cacheImageDateType)
            {
            case CacheImageDateType.CacheFeedImage:
            {
                return("CacheFeedImage");
            }

            case CacheImageDateType.CacheHead:
            {
                return("CacheHead");
            }

            case CacheImageDateType.CachePhoto:
            {
                return("CachePhoto");
            }

            case CacheImageDateType.CacheMiscellaneousImage:
            {
                return("CacheMiscellaneousImage");
            }

            default:
            {
                return("CacheMiscellaneousImage");
            }
            }
        }
 public static void CacheImageInitializationHelper(CacheImageDateType cacheImageDateType)
 {
     var af           = new RenrenCodeFacader().GetServiceAbstractFactry();
     var cacheFactory = af.CreateCacheServiceFactry();
     var imageCache   = cacheFactory.CreateImageCacheByServiceType(CacheImageDateManage.CacheTypeToString(cacheImageDateType));
 }