{"id":18736072,"url":"https://github.com/rajnikant7008/cache-service","last_synced_at":"2026-04-28T16:08:29.603Z","repository":{"id":98916151,"uuid":"160023805","full_name":"rajnikant7008/cache-service","owner":"rajnikant7008","description":"Cache as a Micro Service ","archived":false,"fork":false,"pushed_at":"2018-12-03T19:20:58.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T16:43:37.571Z","etag":null,"topics":["cache","cache-control","cache-service","cache-storage","java","java-8","junit","junit-test","spring","spring-boot","spring-mvc"],"latest_commit_sha":null,"homepage":"http://cache-service.herokuapp.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajnikant7008.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-02T07:26:01.000Z","updated_at":"2018-12-05T19:42:11.000Z","dependencies_parsed_at":"2023-03-08T17:30:55.383Z","dependency_job_id":null,"html_url":"https://github.com/rajnikant7008/cache-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajnikant7008%2Fcache-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajnikant7008%2Fcache-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajnikant7008%2Fcache-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajnikant7008%2Fcache-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajnikant7008","download_url":"https://codeload.github.com/rajnikant7008/cache-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239611992,"owners_count":19668274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","cache-control","cache-service","cache-storage","java","java-8","junit","junit-test","spring","spring-boot","spring-mvc"],"created_at":"2024-11-07T15:19:13.781Z","updated_at":"2025-11-16T12:30:14.423Z","avatar_url":"https://github.com/rajnikant7008.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cache Service Rest APIs\n\n**Add to cache**\n----\n  Returns boolean response.\n\n* **URL:**\n  /v1/cache/add\n\n* **Method:**\n  `POST`\n\n* **Body**\n\n   **Content:** `{ \"key\" : \"country\"\", \"value\" : \"capital\" }`\n   \n* **Success Response:**\n\n  * **Code:** 201 \u003cbr /\u003e\n    **Content:** `{ true }`\n    \n * **Sample Call:**\n   \n     ```\n     curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \\ \n        \"key\": \"country\", \\ \n        \"value\": \"capital\" \\ \n      }' 'https://cache-service.herokuapp.com/v1/cache/add'\n     ```\n \n **Get from cache**\n ----\n   Returns element from cache for a given key.\n \n * **URL:**\n /v1/cache/get/{key}\n \n * **Method:**\n    `GET`\n   \n *  **URL Params**\n \n    **Required:**\n  `key=[string]`\n \n * **Success Response:**\n \n   * **Code:** 200 \u003cbr /\u003e\n     **Content:** `{ \"Value\" }`\n  \n * **Error Response:**\n \n   * **Code:** 204 No Content \u003cbr /\u003e\n     **Content:** `{ no content }`\n     \n * **Sample Call:**\n   \n     ```\n       curl -X GET --header 'Accept: application/json' \n       'https://cache-service.herokuapp.com/v1/cache/get/country'\n     ```\n\n**Peek from cache**\n ----\n   Returns most recently added element from cache.\n \n * **URL:**\n /v1/cache/peek\n \n * **Method:**\n    `GET`\n   \n *  **URL Params**\n \n    **Required:**\n         None\n \n * **Success Response:**\n \n   * **Code:** 200 \u003cbr /\u003e\n     **Content:** `{ \"Value\" }`\n  \n * **Error Response:**\n \n   * **Code:** 204 No Content \u003cbr /\u003e\n     **Content:** `{ no content }`\n* **Sample Call:**\n   \n     ```\n      curl -X GET --header 'Accept: application/json' \n       'https://cache-service.herokuapp.com/v1/cache/peek'\n     \n     ```\n**Take from cache**\n ----\n   Retrieves and removes the most recently added element from the\n   cache.\n \n * **URL:**\n /v1/cache/take\n \n * **Method:**\n    `GET`\n   \n *  **URL Params**\n \n    **Required:**\n         None\n \n * **Success Response:**\n \n   * **Code:** 200 \u003cbr /\u003e\n     **Content:** `{ \"Value\" }`\n  \n * **Error Response:**\n \n   * **Code:** 204 No Content \u003cbr /\u003e\n     **Content:** `{ no content }`\n* **Sample Call:**\n   \n     ```\n      curl -X GET --header 'Accept: application/json' \n       'https://cache-service.herokuapp.com/v1/cache/take'\n     ```\n**Remove from cache**\n ----\n   Returns true if the element was successfully removed.\n \n * **URL:**\n  /v1/cache/remove/{key} \n \n * **Method:**\n    `DELETE`\n   \n *  **URL Params**\n \n    **Required:**\n  `key=[string]`\n \n * **Success Response:**\n \n   * **Code:** 200 \u003cbr /\u003e\n     **Content:** `{ true }`\n  \n * **Sample Call:**\n   \n     ```\n       curl -X DELETE --header 'Accept: application/json' \n        'https://cache-service.herokuapp.com/v1/cache/remove/country'\n     ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajnikant7008%2Fcache-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajnikant7008%2Fcache-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajnikant7008%2Fcache-service/lists"}