Closed Caldas closed 9 years ago
Do a 'Info' request. Aerospike has a info service that returns a name/value string of config and status information.
For example to get information about namespaces, get the list of nodes and use a node to send a request for info and select the term that you're interested in.
var nodes = aerospikeClient.Nodes;
var namespacesRaw = Info.Request(nodes[0].GetConnection(1000), "namespaces");
var namespaces = namespacesRaw.Split(';').ToList();
@manigandham list namespace Ok, thanks ...
Do you know how to list set into a specific namespace?
https://docs.aerospike.com/display/V3/asinfo+-+Read+Parameters
Better reference: http://www.aerospike.com/docs/reference/info/
Filter by sets/namespaceYouWant
and look through the key/values.
It was possible to know more about sets using
var nodes = aerospikeClient.Nodes;
var namespacesRaw = Info.Request(nodes[0].GetConnection(1000), "sets");
var namespaces = namespacesRaw.Split(';').ToList();
Others possibles commands are avaliable at http://www.aerospike.com/docs/reference/info/
Thanks a lot @manigandham :+1:
How can I list namespaces and sets inside namespaces using C# client?