4 Commits

Author SHA1 Message Date
Nishant Das
340387ef3f
Fix Memory Leak In New Timecache Implementations (#528)
* fix bug

* add for last seen cache
2023-03-15 13:52:01 +02:00
vyzo
56c0e6c5c9
Refactor timecache implementations (#523)
* reimplement timecache for sane and performant behaviour

* remove seenMessagesMx, take advantage of new tc api

* fix timecache tests

* fix typo

* store expiry, don't make life difficult

* refactor common background sweep procedure for both impls

* add godocs to TimeCache
2023-02-21 21:13:13 +02:00
Hlib Kanunnikov
3dbc2fd5ba
fix(timecache): remove panic in first seen cache on Add (#522) 2023-02-21 13:10:42 +02:00
Mohsin Zaidi
973fef56e1
feat: expire messages from the cache based on last seen time (#513)
* feat: expire messages from the cache based on last seen time

* chore: minor renaming

* fix: messages should not be found after expiration

* chore: editorial

* fix: use new time cache strategy consistently

* fix: default to old time cache and add todo for background gc
2023-01-24 02:02:44 +02:00