001package org.avaje.ebean.ignite;
002
003import com.avaje.ebean.BackgroundExecutor;
004import com.avaje.ebean.cache.ServerCacheFactory;
005import com.avaje.ebean.cache.ServerCachePlugin;
006import com.avaje.ebean.config.ServerConfig;
007
008/**
009 * Cache plugin that creates the Ignite ServerCacheFactory.
010 */
011public class IgCachePlugin implements ServerCachePlugin {
012
013  /**
014   * Create the Ignite ServerCacheFactory implementation.
015   */
016  @Override
017  public ServerCacheFactory create(ServerConfig config, BackgroundExecutor executor) {
018    return new IgCacheFactory(config, executor);
019  }
020}