sudohikumar / sample-redis-api

This is a simple Go API that reads/writes/deletes keys to/from Redis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTES:

  • This performs basic operations related to Redis.

  • Following are the endpoints available.

  • All requests are GET

  • Required Headers:

    • redis_host- Redis Instance address to connect to
    • redis_port- Redis Instance port to connect to
  • Endpoints:

    • /add/:key/:value - Adds key to the redis
    • /delete/:key - Deletes key from redis
    • /get/:key - Gets key from redis
  • Response format:

    • {
        "message": "<response-message>",
        "error": "<error-message>"
      }

About

This is a simple Go API that reads/writes/deletes keys to/from Redis.


Languages

Language:Go 100.0%