Hi, I think ttl would be applied for the entire list, I would like the ListState to restrict the entries by size and automatically purge older added entries as new ones get added. Something similar to a bounded list.
Thanks Sachin On Thu, May 29, 2025 at 6:51 PM Sigalit Eliazov <e.siga...@gmail.com> wrote: > hi, > i think you can achieve this by using StateTtlConfig to define the ttl, > and add ListStateDescriptor to the ListState definition. > > thanks, > Sigalit > > > > On Thu, May 29, 2025 at 11:53 AM Sachin Mittal <sjmit...@gmail.com> wrote: > >> Hi, >> I am adding some hashes of my elements in my list date to check for >> dedups. >> >> Now to not have an infinte growing list, I would like to limit the size >> of hashes in that list to say a number or just add some TTL config which >> would expire the entries in the list beyond certain time. >> >> Is this something possible using Flink constructs. >> >> If not, is there any way I can achieve this ? >> >> Thanks >> Sachin >> >>