Created 08-14-2018 11:13 PM
Created 08-14-2018 11:37 PM
The default implementation is to throw UnsupportedOperationException, but many/most/all of the subclasses override it. Check the reference impl, and since you are removing things, also check removeAndGet(), removeByPattern(), and removeByPatternAndGet() to see if they would help, they might save you the trouble of fetching all keys to remove some of them.
Created 08-14-2018 11:37 PM
The default implementation is to throw UnsupportedOperationException, but many/most/all of the subclasses override it. Check the reference impl, and since you are removing things, also check removeAndGet(), removeByPattern(), and removeByPatternAndGet() to see if they would help, they might save you the trouble of fetching all keys to remove some of them.
Created 08-14-2018 11:52 PM
Ah yes thank you! Indeed the reference impl does implement the keySet method. I found your dcache groovy script and attempted to modify it to call the keySet method to return the set of keys, but I don't know groovy and so far it's not working... any chance I can get you to add a "getkeys" option to your groovy script if it's not too difficult? Thank you so much for your help! 🙂
Created 08-15-2018 08:10 PM
dcachegroovy.txt Here you go! The command is called "keys", prints each key on its own line.
Created 08-16-2018 03:11 PM
You are awesome! Thank you!!!