SkillAgentSearch skills...

Data.RiakClient

Riak client using google protocol buffers for binary socket communication with the cluster of riak nodes

Install / Use

/learn @garethstokes/Data.RiakClient
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

First you need to establish a connection to riak, and to establish a connection to riak you will need to build a RiakConnectionManager

var connectionManager = RiakConnectionManager.FromConfiguration; // doesn't do anything now, IoC coming soon! connectionManager.AddConnection("192.168.0.188", 8087); // server address and protocol buffer port

then make the connection to riak

var riakConnection = new RiakContentRepository(connectionManager);

#Insert

var response = riakConnection.Find(x => { x.ReadValue = 1; x.Bucket = bucket; x.Keys = new string[] { key }; });

var document = response.Result;

Related Skills

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated8y ago
Forks0

Languages

C#

Security Score

55/100

Audited on Jan 17, 2018

No findings