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.
The
setfunction onMotiaStreamlooks like this:It doesn't seem to expose TTL configuration. So all entries created in redis this way end up having a TTL of
-1which 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
setfunction should probably support configurations for such cases.