Skip to content

Cache size #141

Answered by Krukov
skeapskeap asked this question in Q&A
May 10, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I've just added the method get_keys_count

mem = cache.setup("mem://")
redis_backend = cache.setup("redis://")

await cache.get_keys_count() # total number of keys  in mem and redis backends
await redis_backend.get_keys_count()  # number of keys  in redis backend

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@skeapskeap
Comment options

@Krukov
Comment options

@Krukov
Comment options

Answer selected by Krukov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants