<!-- Source: https://docs.squirro.com/en/latest/api/squirro.lib.nlp.utils.model_management.InMemModel.html -->
# InMemModel

**`class InMemModel(lifetime=-1)`**

Bases: [`object`](https://docs.python.org/3.11/library/functions.html#object)

Deprecated class. To cache models use the ModelCacheClient instead.

In Memory support class

**`lifetime`**

Maximum number of hours to maintain the model in the memory.
-1 = forever (default)

Type

[int](https://docs.python.org/3.11/library/functions.html#int), 2

Methods SummaryMethods Documentation

**`get_model(model_id, fallback_model=None)`**

**`store_model(model_id, model)`**
