K
Kord16mo ago
tmpod

Understanding default caching behaviour

I'm trying to understand Kord's default caching behaviour and wanted to confirm the "boundness" of the default generator. Kord seems to use a concurrent hash map as a generator by default, which is unbounded, right? KordEx applies a lruCache with a default size of 10000 for messages, which seems wise, but plain Kord doesn't?
6 Replies
gdude
gdude16mo ago
It doesn't cache messages by default iirc
tmpod
tmpodOP16mo ago
right true
tmpod
tmpodOP16mo ago
tmpod
tmpodOP16mo ago
alright makes sense so the other descriptions have unbounded caches by default?
gdude
gdude16mo ago
honestly good question
tmpod
tmpodOP16mo ago
From the look I had at the code, I'd say so, but honestly it is a bit confusing and I can't dive deep into it rn xD

Did you find this page helpful?