public class IgCacheFactory extends Object implements com.avaje.ebean.cache.ServerCacheFactory
The L2 Query cache is effectively an always a near cache and we use Ignite to send/receive invalidation messages for the query caches on all the members of the cluster.
All the 'Bean' caches will typically be partitioned with an optional 'near' cache option or replicated. Replicated caches ought to be a good choice for small cardinality/stable bean types (like countries, currencies etc).
| Constructor and Description |
|---|
IgCacheFactory(com.avaje.ebean.config.ServerConfig serverConfig,
com.avaje.ebean.BackgroundExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
com.avaje.ebean.cache.ServerCache |
createCache(com.avaje.ebean.cache.ServerCacheType type,
String key,
com.avaje.ebean.cache.ServerCacheOptions options) |
public IgCacheFactory(com.avaje.ebean.config.ServerConfig serverConfig, com.avaje.ebean.BackgroundExecutor executor)
public com.avaje.ebean.cache.ServerCache createCache(com.avaje.ebean.cache.ServerCacheType type, String key, com.avaje.ebean.cache.ServerCacheOptions options)
createCache in interface com.avaje.ebean.cache.ServerCacheFactoryCopyright © 2016. All rights reserved.