class BlobStoreCacheModulesChooser {

    public static List<Module> chooseModules(BlobStoreConfiguration blobStoreConfiguration) {
        if (blobStoreConfiguration.cacheEnabled()) {
            return ImmutableList.of(new CassandraCacheSessionModule(), new CacheEnabledModule());
        }
        return ImmutableList.of(new CacheDisabledModule());
    }

}