Skip to content

TTL configuration when calling set on streams #1222

@aneequrrehman

Description

@aneequrrehman

The set function on MotiaStream looks like this:

set(groupId: string, id: string, data: TData): Promise<StreamSetResult$1<BaseStreamItem<TData>>>;

It doesn't seem to expose TTL configuration. So all entries created in redis this way end up having a TTL of -1 which is not ideal because in many cases, there is a primary database that ends up having the full entries after the streamed is complete anyway.

So set function should probably support configurations for such cases.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions