Package com.commafeed.backend.cache

Examples of com.commafeed.backend.cache.CacheService


  }

  private void testOpmlVersion(String fileName) throws IOException {
    FeedCategoryDAO feedCategoryDAO = Mockito.mock(FeedCategoryDAO.class);
    FeedSubscriptionService feedSubscriptionService = Mockito.mock(FeedSubscriptionService.class);
    CacheService cacheService = Mockito.mock(CacheService.class);
    User user = Mockito.mock(User.class);

    String xml = IOUtils.toString(getClass().getResourceAsStream(fileName));

    OPMLImporter importer = new OPMLImporter(feedCategoryDAO, feedSubscriptionService, cacheService);
View Full Code Here


  @Getter(onMethod = @__({ @Provides }))
  private final MetricRegistry metrics;

  @Override
  protected void configure() {
    CacheService cacheService = config.getApplicationSettings().getCache() == CacheType.NOOP ? new NoopCacheService()
        : new RedisCacheService(config.getRedisPoolFactory().build());
    log.info("using cache {}", cacheService.getClass());
    bind(CacheService.class).toInstance(cacheService);

    Multibinder<AbstractFaviconFetcher> multibinder = Multibinder.newSetBinder(binder(), AbstractFaviconFetcher.class);
    multibinder.addBinding().to(YoutubeFaviconFetcher.class);
    multibinder.addBinding().to(FacebookFaviconFetcher.class);
View Full Code Here

TOP

Related Classes of com.commafeed.backend.cache.CacheService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.