Flush cache on demand - tapDump
Our current application is using EHCache and which allows our internal users to flush a portion of a cache, on demand, after making changes to the site.
While we are being migrated to Membase, we are hoping to use the TapClient to do the same functionality.
tapDump can get the full dump and we can find the keys from there, and flush them, and it works! But it pulls a lot of data, and the iteration is taking too long.
Is there a way I can apply a regular expression while doing a tapDump?
We are using Membase 1.7.1-1 and spymemcached-2.7.1.jar.
http://www.couchbase.org/wiki/display/membase/prerelease+spymemcached+vb... says I can, but the constructor seems to have changed.
The java-doc on tapCustom is not that clear. Can I use that to get the dump for a regex?
This is what I am trying to do, but it doesn't find any keys.
Operation op = client.tapCustom("TEST",new RequestMessage(), "(testkeys)", "");
Can someone please help?