https://github.com/qoollo/bob-client-net
Bob client for .NET
https://github.com/qoollo/bob-client-net
bob bob-client
Last synced: 2 months ago
JSON representation
Bob client for .NET
- Host: GitHub
- URL: https://github.com/qoollo/bob-client-net
- Owner: qoollo
- License: mit
- Created: 2019-10-03T14:45:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T21:03:52.000Z (almost 2 years ago)
- Last Synced: 2025-08-20T01:42:02.752Z (10 months ago)
- Topics: bob, bob-client
- Language: C#
- Homepage:
- Size: 387 KB
- Stars: 4
- Watchers: 14
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# .NET client library for Bob
[](https://www.nuget.org/packages/Qoollo.BobClient/) [](https://github.com/qoollo/bob-client-net/actions/workflows/build.yaml) [](https://github.com/qoollo/bob-client-net/actions/workflows/test.yaml)
Bob is a distributed BLOB storage: https://github.com/qoollo/bob
# Usage example for single node client
```C#
using (var client = new BobNodeClient("Address = 10.5.5.131:20000; OperationTimeout = 00:02:00"))
{
client.Open();
client.Put(1, new byte[] { 1, 2, 3 });
var result = client.Get(1);
client.Close();
}
```
# Usage example for cluster
```C#
using (var client = new BobClusterBuilder()
.WithAdditionalNode("Address = 10.5.5.131; OperationTimeout = 00:02:00")
.WithAdditionalNode("Address = 10.5.5.132; OperationTimeout = 00:02:00")
.WithSequentialNodeSelectionPolicy()
.Build())
{
client.Open();
client.Put(1, new byte[] { 1, 2, 3 });
var result = client.Get(1);
client.Close();
}
```