Coder Social home page Coder Social logo

Comments (8)

shubhamranjan avatar shubhamranjan commented on July 4, 2024 1

Well, that's already there.
Ref: https://github.com/shubhamranjan/dotnet-etcd#get-multiple-keys-with-a-common-prefix

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 4, 2024

Hi @Nitin5acc ,
Not sure what you want to achieve here. Are you talking about using the lib via DI ? If that's the case, I can provide a public interface for that.

from dotnet-etcd.

Nitin5acc avatar Nitin5acc commented on July 4, 2024

We are planning to use etcd to store configuration value (i.e. Database connection string ). Currently, we are using an IConfiguration builder to read other config values. We would like to use your Etcd client with IConfiguration.
Something like -
https://github.com/rajanadar/VaultSharp

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 4, 2024

https://github.com/rajanadar/VaultSharp

Can't see what exactly are you looking for. Can you show an example snippet depicting how you exactly want to use it.

from dotnet-etcd.

Nitin5acc avatar Nitin5acc commented on July 4, 2024

You can ignore this. We did achieve what was needed. We were trying to create configuration client.
Onr more thing -
Is there a way to get the key-value pairs in a hierarchical way (like the suffix), Not just Values but key-value pairs?

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 4, 2024

Is there a way to get the key-value pairs in a hierarchical way (like the suffix), Not just Values but key-value pairs?

Are you looking for all keys under a certain path ? Something like:

await client.GetRangeAsync(<PREFIX_STRING>);
// E.g. Get all keys with pattern "foo/*" in async
await client.GetRangeAsync("foo/");

from dotnet-etcd.

Nitin5acc avatar Nitin5acc commented on July 4, 2024

Yes.

from dotnet-etcd.

Nitin5acc avatar Nitin5acc commented on July 4, 2024

Hello,
One more Questions-
Can we Store data in hierarchically organized directories, as in a standard filesystem?
Something like -
/config
/database
/feature-flags
/verbose-logging
/redesign

from dotnet-etcd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.