K
Kord15mo 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
gdude15mo ago
It doesn't cache messages by default iirc
tmpod
tmpodOP15mo ago
right true
tmpod
tmpodOP15mo ago
tmpod
tmpodOP15mo ago
alright makes sense so the other descriptions have unbounded caches by default?
gdude
gdude15mo ago
honestly good question
tmpod
tmpodOP15mo 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?