updated oncotree VersionUtil to only interact with CacheUtil (containing versions)
version cache is keyset of tumorTypes cache in CacheUtil
CacheUtil initializes cache - call to getCachedVersions from VersionUtil will initialize in the case of a null cache
new VersionUtil unit test to check VersionUtil only interacts with cache
new CacheUtil unit test to check CacheUtil getCachedVersions()/resetCache() dependency on OncoTreeVersionRepository
Cache (CacheUtil) will be initialized on startup and can only be refreshed through resetCache() endpoint (either manually or when cache is stale). A cache refresh will abort if TopBraid is down -- meaning there should always be a valid cache in place. Queries related to oncotree versions (through VersionUtil) now check the cache (CacheUtil) instead of directly querying TopBraid (OncoTreeVersionRepository). This breaks the dependency on TopBraid (assuming initial startup is successful).
Cache (MSKConceptCache) will also be initialized on startup and is refreshed once a week (cron-scheduled). Refresh will abort if TopBraid is down -- valid cache will always be in place.
Application will fail to start up if TopBraid is down because the Beans are unable to be initialized (i.e MSKConceptCache bean).
Cache (CacheUtil) will be initialized on startup and can only be refreshed through resetCache() endpoint (either manually or when cache is stale). A cache refresh will abort if TopBraid is down -- meaning there should always be a valid cache in place. Queries related to oncotree versions (through VersionUtil) now check the cache (CacheUtil) instead of directly querying TopBraid (OncoTreeVersionRepository). This breaks the dependency on TopBraid (assuming initial startup is successful).
Cache (MSKConceptCache) will also be initialized on startup and is refreshed once a week (cron-scheduled). Refresh will abort if TopBraid is down -- valid cache will always be in place.
Application will fail to start up if TopBraid is down because the Beans are unable to be initialized (i.e MSKConceptCache bean).