Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

retrieve all objects key store in memcached in java

Tags:

java

memcached

I stored some objects with key in memcached. But now I want to see which keys are stored in memcached.

How to retrieve all object keys stored in memcached in java?

I want to get keys which is more than 100 stored in memcached. Is it possible?

like image 508
Jay Patel Avatar asked Jun 09 '26 05:06

Jay Patel


1 Answers

It's not possible, here's the explanation why:

No. memcached doesn't support that and it's not a planned feature. It would be a relatively slow and blocking operation...

UPDATE

FAQ How can you list all keys?

With memcached, you can't list all keys. There is a debug interface, but that is not an advisable usage.

like image 101
milan Avatar answered Jun 10 '26 17:06

milan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!