immuneML.caching package

Submodules

immuneML.caching.CacheHandler module

class immuneML.caching.CacheHandler.CacheHandler[source]

Bases: object

static add(params: tuple, caching_object, object_type: CacheObjectType = CacheObjectType.OTHER, cache_type=None)[source]
static add_by_key(cache_key: str, caching_object, object_type: CacheObjectType = CacheObjectType.OTHER, cache_type=None)[source]
static exists(params: tuple, object_type: CacheObjectType = CacheObjectType.OTHER, 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: CacheObjectType = CacheObjectType.OTHER, cache_type=None)[source]
static memo_by_params(params: tuple, fn, object_type: CacheObjectType = CacheObjectType.OTHER, cache_type=None)[source]

immuneML.caching.CacheObjectType module

class immuneML.caching.CacheObjectType.CacheObjectType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

ENCODING = 1
ENCODING_STEP = 0
OTHER = 2

immuneML.caching.CacheType module

class immuneML.caching.CacheType.CacheType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

PRODUCTION = 'production'
TEST = 'test'

Module contents