In-memory table storage.

class faust.stores.memory.Store(url: Union[str, yarl.URL], app: faust.types.app.AppT, table: faust.types.tables.CollectionT, *, table_name: str = '', key_type: Union[Type[faust.types.models.ModelT], Type[bytes], Type[str]] = None, value_type: Union[Type[faust.types.models.ModelT], Type[bytes], Type[str]] = None, key_serializer: Union[faust.types.codecs.CodecT, str, None] = None, value_serializer: Union[faust.types.codecs.CodecT, str, None] = None, options: Mapping[str, Any] = None, **kwargs: Any) → None[source]

Table storage using an in-memory dictionary.

apply_changelog_batch(batch: Iterable[faust.types.events.EventT], to_key: Callable[Any, Any], to_value: Callable[Any, Any]) → None[source]

Apply batch of changelog events to in-memory table.

Return type


persisted_offset(tp: faust.types.tuples.TP) → Optional[int][source]

Return the persisted offset.

This always returns None when using the in-memory store.

Return type


reset_state() → None[source]

Remove local file system state.

This does nothing when using the in-memory store.

Return type


logger = <Logger faust.stores.memory (WARNING)>