Coder Social home page Coder Social logo

bhandar's Introduction

Bhandar

Bhandar

A basic in-memory storage Real-Time Database in GoLang

Description: Bhandar is a lightweight, high-performance key-value cache implemented in Go. It provides a simple yet efficient caching solution for storing and retrieving data with support for TTL (time-to-live) expiration.

Features:

  • In-memory key-value caching.
  • Support for TTL-based expiration.
  • Real-time command line interface for interacting with the cache.
  • HTTP API for setting and getting key-value pairs.
  • Built-in support for monitoring cache usage and performance.
  • Customizable TTL for each key-value pair.
  • Thread-safe operations with mutex locks.

Installation:

  1. Clone the repository:

    git clone https://github.com/rudransh61/Bhandar.git
    
  2. Navigate to the project directory:

    cd Bhandar
    
  3. Build the project:

    go build
    

Usage:

  1. Run the GoCache server:

    ./bhandar
    
  2. Access the HTTP API endpoints:

    • Set a key-value pair:
      curl -X POST "http://localhost:8000/set?key=mykey&value=myvalue&ttl=10s"
      
    • Get the value associated with a key:
      curl "http://localhost:8000/get?key=mykey"
      
  3. Interact with the real-time command line interface:

    127.0.0.1:8000> set mykey myvalue 10s
    127.0.0.1:8000> get mykey
    

Contributing: Contributions are welcome! Feel free to fork the repository, make improvements, and submit pull requests.

Contact: For any questions or feedback, please contact [Rudransh Bhardwaj] at [[email protected]].

Acknowledgments: Special thanks to the Go community and contributors for their support and contributions to this project.

bhandar's People

Contributors

rudransh61 avatar

Stargazers

 avatar

Watchers

 avatar

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.