public interface ServerCacheFactory
| Modifier and Type | Method and Description |
|---|---|
ServerCache |
createCache(String cacheKey,
ServerCacheOptions cacheOptions)
Create the cache for the given type with options.
|
void |
init(EbeanServer ebeanServer)
Just after the ServerCacheFactory is constructed this method is called
passing the EbeanServer.
|
void init(EbeanServer ebeanServer)
This is so that a cache implementation can utilise the EbeanServer to populate itself or use the BackgroundExecutor service to schedule periodic cache trimming/cleanup.
ServerCache createCache(String cacheKey, ServerCacheOptions cacheOptions)
Copyright © 2016. All rights reserved.