{"id":18778790,"url":"https://github.com/ramsailopal/yottadb-apicache","last_synced_at":"2026-05-20T07:39:05.427Z","repository":{"id":127742642,"uuid":"473654698","full_name":"RamSailopal/YottaDB-APICache","owner":"RamSailopal","description":"A demonstration of using YottaDB as an API cache in a similar way to the way Redis is used","archived":false,"fork":false,"pushed_at":"2022-03-24T21:15:28.000Z","size":3805,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T10:26:49.689Z","etag":null,"topics":["api","cache-storage","intersystems-cache","intersystems-iris","javascript","mumps","nodejs","yottadb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/RamSailopal.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":"2022-03-24T15:02:52.000Z","updated_at":"2022-03-24T21:50:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fcd2baa-6300-4d21-9d86-a512a329c926","html_url":"https://github.com/RamSailopal/YottaDB-APICache","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/RamSailopal%2FYottaDB-APICache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaDB-APICache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaDB-APICache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaDB-APICache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RamSailopal","download_url":"https://codeload.github.com/RamSailopal/YottaDB-APICache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239690074,"owners_count":19681035,"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":["api","cache-storage","intersystems-cache","intersystems-iris","javascript","mumps","nodejs","yottadb"],"created_at":"2024-11-07T20:17:17.508Z","updated_at":"2026-05-20T07:39:00.407Z","avatar_url":"https://github.com/RamSailopal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YottaDB-APICache\n\n![Alt text](yottadb-cache.webp?raw=true \"gitpod View\")\n\nA demonstration of using YottaDB as an API cache in a similar way to the way Redis is used\n\nRedis in an in memory key value data store, where as YottaDB is an on disk key value store. The speed of RAM against disk, would therefore make Redis more performant but the native speed of YottaDB, and the lower cost of disk space would make YottaDB beneficial none the less\n\nThree external endpoints are used of for testing with varying payloads:\n\nhttps://www.reddit.com/r/Wallstreetbets/top.json?limit=10000\u0026t=year - 10000 records\n\nhttps://jsonplaceholder.typicode.com/photos - 5000 records\n\nhttps://jsonplaceholder.typicode.com/comments - 500 records\n\n# Gitpod\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/RamSailopal/YottaDB-APICache)\n\nGet a free gitpod account at https://gitpod.io and then click on the Gitpod button above to provision in Gitpod\n\n# On Prem with docker-compose\n\n    git clone https://github.com/RamSailopal/YottaDB-APICache.git\n    cd YottaDB-APICache/Docker\n    docker-compose up\n    \n# Testing with Postman\n\nYou can attain a web based version of Postman from here:\n\nhttps://go.postman.co\n\nThe following endpoints will first call the external api's (referenced above) and create a cache within YottaDB. All subsequent calls will use the cache up until a period a 30 seconds when the cache is cleared.\n\n   http://dockerserveraddress:4000/photos or https://4000-gitpodserveraddress/photos\n   \n   http://dockerserveraddress:4000/comments or https://4000-gitpodserveraddress/comments\n   \n   http://dockerserveraddress:4000/reddit or https://4000-gitpodserveraddress/reddit\n   \n The M routine **yottacache** - https://raw.githubusercontent.com/RamSailopal/YottaDB-APICache/main/yottadb/yottacache.m is used to create and clear the cache and **Rob Tweed's** **mg-dbx** used to write and read from YottaDB as well as calling the yottacache M functions\n\n# References\n\n**mg-dbx** - https://www.npmjs.com/package/mg-dbx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framsailopal%2Fyottadb-apicache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framsailopal%2Fyottadb-apicache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framsailopal%2Fyottadb-apicache/lists"}