immuneML.caching package

Submodules

immuneML.caching.CacheHandler module

class immuneML.caching.CacheHandler.CacheHandler[source]

Bases: object

static add(params: tuple, caching_object, object_type: immuneML.caching.CacheObjectType.CacheObjectType = <CacheObjectType.OTHER: 2>, cache_type=None)[source]
static add_by_key(cache_key: str, caching_object, object_type: immuneML.caching.CacheObjectType.CacheObjectType = <CacheObjectType.OTHER: 2>, cache_type=None)[source]
static exists(params: tuple, object_type: immuneML.caching.CacheObjectType.CacheObjectType = <CacheObjectType.OTHER: 2>, cache_type=None)[source]
static generate_cache_key(params: tuple)[source]
static get(params: tuple, object_type, cache_type=None)[source]
static get_by_key(cache_key: str, object_type, cache_type=None)[source]
static get_file_path(cache_type=None)[source]
static memo(cache_key: str, fn, object_type: immuneML.caching.CacheObjectType.CacheObjectType = <CacheObjectType.OTHER: 2>, cache_type=None)[source]
static memo_by_params(params: tuple, fn, object_type: immuneML.caching.CacheObjectType.CacheObjectType = <CacheObjectType.OTHER: 2>, cache_type=None)[source]

immuneML.caching.CacheObjectType module

class immuneML.caching.CacheObjectType.CacheObjectType(value)[source]

Bases: enum.Enum

An enumeration.

ENCODING = 1
ENCODING_STEP = 0
OTHER = 2

immuneML.caching.CacheType module

class immuneML.caching.CacheType.CacheType(value)[source]

Bases: enum.Enum

An enumeration.

PRODUCTION = 'production'
TEST = 'test'

Module contents