Is there a way to find out how many items are in the cache?

I want to know roughly about how many items are in the cache, but I just can’t find the related api.

no public api to compute length of store.

maybe you fork the code and add it by yourself.