Export All Keys from C#
Is there a way to get a list of all the keys in a membase bucket for export. I need to do this from C#.
Thanks
marc
Bhawana:
I gather from your reply that there is no C# client at this time.
I guess, if I need to see the cache keys, I will have to develop my own client, correct? As the Python script is not an option.
Is anyone working on a C# tap client?
Thanks
marc
There is no C# for your specific use case. You will have to develop your own client and you could use python script (tap.py) as a reference. There are other references you can find in the 'Implementations and Samples' section of the TAP protocol doc http://wiki.membase.org/display/membase/TAP+Protocol
Bhawana
We've also begun creating a C library for Membase (http://blog.membase.com/libmembase-c-interface-to-membase). It's not C#, but maybe that helps for now?
Perry
Perry, does the C library have support for TAP? If so, where can I find the code to check out. I might be able to port it to C#. If not, I will probably have to develop my own C# TAP library.
Thanks
marc
Yes it does, sorry I could have made that clearer.
Take a look at that blog post I sent over and let me know if that helps you.
Perry
I ready the posting, it might work. C to C# or unmanaged to managed code can be a pain. I would need to look at the C library source to get an understanding if it is something I'm capable of making work.
Where can I found the source?
thanks
marc
Here's a bit more info, including links to the source: http://trondn.blogspot.com/2010/12/building-libmembase.html
Perry
Perry:
I was reading the documentation here: wiki.membase.org/display/membase/TAP+Protocol. I noticed that it explicitly states that TAP can only be used with membase buckets, not memcached buckets. Is that still the case with the 1.6.4 release?
Is there any way to configure the membase bucket to not use a backing disk store?
thanks
marc
Unfortunately, yes it is still the case and no you can't currently configure Membase to not use a backing store. We've already got that as a feature request and I will add you interest to that.
Perry
@mhsimkin
have you had any progress with this ?
Hi,
I am new to CouchBase anyone can help me with this please...
PROBLEM:
I am using CouchBase C# client and storing the values; client.Get(ArrayOfKeys) and getting results as expected. I want to cast the result to C# Dictionary, KeyValuePair or ConCurrentDictionary or HashTable.
But, I get every time null value if I try to do this. Can anyone please guide me how we can cast the results of MemBase Client to any generic collection object in C#?
Regards,
Sunder
marc,
You can use the TAP protocol.
http://wiki.membase.org/display/membase/TAP+Protocol
A script called tap.py is included with the Membase distribution (/opt/membase/1.6.0/bin/ep_engine/management/tap.py).
https://github.com/membase/ep-engine/blob/master/management/tap.py
Thanks
Bhawana
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!