{"id":20579230,"url":"https://github.com/andyj/cached-queries-with-nodejs","last_synced_at":"2026-07-04T06:01:25.757Z","repository":{"id":244449843,"uuid":"815278408","full_name":"andyj/cached-queries-with-nodejs","owner":"andyj","description":"Playing around with replicating caching of queries ","archived":false,"fork":false,"pushed_at":"2026-02-13T15:45:44.000Z","size":306,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T00:17:29.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-14T18:42:58.000Z","updated_at":"2024-06-15T10:01:11.000Z","dependencies_parsed_at":"2024-06-14T19:55:28.349Z","dependency_job_id":"549b9712-5feb-4645-907b-cb83fd478ec9","html_url":"https://github.com/andyj/cached-queries-with-nodejs","commit_stats":null,"previous_names":["andyj/cached-queries-with-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyj/cached-queries-with-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyj%2Fcached-queries-with-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyj%2Fcached-queries-with-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyj%2Fcached-queries-with-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyj%2Fcached-queries-with-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyj","download_url":"https://codeload.github.com/andyj/cached-queries-with-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyj%2Fcached-queries-with-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35111429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-16T06:16:11.047Z","updated_at":"2026-07-04T06:01:25.732Z","avatar_url":"https://github.com/andyj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Cached Queries With Nodejs\n\nI'm still a CFML coder at heart, so this is a personal project to replicate something similar to CFML Query Caching. It demonstrates how to set up a Node.js application with a RDBMS (SQLite3 for now) and Redis for caching query results. Each user’s query results are cached uniquely based on their user ID and query parameters. This setup aims to replicate caching of queries.\n\n## Environment Setup\n\nCreate a `.env` file in the root of your project with the following content. This file will store your Redis connection details securely.\n\n```plaintext\n# .env\n\n# The hostname or IP address of your Redis server\nREDISHOST=\"localhost\"\n\n# The port number on which your Redis server is running\nREDISPORT=\"6379\"\n\n# The password for your Redis server (if applicable)\nREDISPW=\"passwd\"\n```\n\n## Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/andyj/cached-queries-with-nodejs.git\n   cd cached-queries-with-nodejs\n   ```\n\n2. **Install the dependencies:**\n   ```bash\n   npm install\n   ```\n\n## Running the Application\n\n1. **Start the server:**\n   ```bash\n   npm start\n   ```\n\n2. **Access the example route:**\n   - Open your browser and navigate to `http://localhost:8001/data`.\n3. **Output**\n   - The output should be a time stamp `[{\"time()\":\"09:38:46\"}]` which does not change for 5 seconds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyj%2Fcached-queries-with-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyj%2Fcached-queries-with-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyj%2Fcached-queries-with-nodejs/lists"}