|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.cache.CacheFactoryManager
@Service public class CacheFactoryManager
A convenient accessor for getting atlassian-cache 2.0 CacheFactory
in all JIRA versions. Can be removed once
minimum JIRA version is 6.2.
Constructor Summary | |
---|---|
CacheFactoryManager()
|
Method Summary | |
---|---|
com.atlassian.cache.compat.CacheFactory |
create()
|
static com.atlassian.cache.compat.CacheSettings |
defaultCacheSettings()
The recommendation from JIRA is to default the cache settings to expire after 30 minutes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheFactoryManager()
Method Detail |
---|
public static com.atlassian.cache.compat.CacheSettings defaultCacheSettings()
The recommendation from JIRA is to default the cache settings to expire after 30 minutes. Before using this
method, ensure that you consider the scenarios under which your cache is going to be populated. If it is
possible that your cache will be populated in a tight loop for all objects in the system, you do not want
to use these defaults as they could result in an OutOfMemoryError
.
See VersionMetaDataManagerImpl.init()
,
SprintManagerImpl.init()
for some examples on when custom
settings should be used.
public com.atlassian.cache.compat.CacheFactory create()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |