Cache size #141
-
Is it possible to find out how many values are currently stored in cache? I found an in-memory cache only workaround. Unfortunatelly it's not gonna work with other types of backend since store attr is present only in backend: Memory.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi Unfortunately cashew do not have such api (get count of stored keys). Probably I can add it but for redis it will be hard to do it in a right way because in real world redis can be shared between applications and it is hard to understand which key was set by cashew and which not. Can you tell a little more about your use case? |
Beta Was this translation helpful? Give feedback.
I've just added the method
get_keys_count