{"id":20258394,"url":"https://github.com/depyronick/light-cache","last_synced_at":"2026-04-29T23:31:35.508Z","repository":{"id":57290170,"uuid":"83945526","full_name":"depyronick/light-cache","owner":"depyronick","description":"Light Cache is a lightweight and simple in-memory internal cache module for NodeJS.","archived":false,"fork":false,"pushed_at":"2017-03-08T21:54:13.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-14T07:14:26.953Z","etag":null,"topics":["cache","express-cache","expressjs","node","node-cache","node-js","node-module","nodejs","nodejs-modules","npm","npm-cache","npm-module","npm-package","npm-scripts","npmjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depyronick.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}},"created_at":"2017-03-05T04:47:31.000Z","updated_at":"2020-09-22T12:16:00.000Z","dependencies_parsed_at":"2022-08-25T05:20:53.390Z","dependency_job_id":null,"html_url":"https://github.com/depyronick/light-cache","commit_stats":null,"previous_names":["p0d3r/light-cache"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/depyronick/light-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depyronick%2Flight-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depyronick%2Flight-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depyronick%2Flight-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depyronick%2Flight-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depyronick","download_url":"https://codeload.github.com/depyronick/light-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depyronick%2Flight-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cache","express-cache","expressjs","node","node-cache","node-js","node-module","nodejs","nodejs-modules","npm","npm-cache","npm-module","npm-package","npm-scripts","npmjs"],"created_at":"2024-11-14T11:08:45.697Z","updated_at":"2026-04-29T23:31:35.492Z","avatar_url":"https://github.com/depyronick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Light Cache\n\nLight Cache is a lightweight and simple in-memory internal cache module for NodeJS.\n\n### Dependencies\n\n* [extend] - Simple function to extend objects\n\n### Installation\n\nLight Cache requires at least [Node.js](https://nodejs.org/) v6.10.0+ to run.\n\n```sh\n$ npm install light-cache\n```\n\n# Usage\n\n#### Initialization\n\n    var LightCache = require('light-cache');\n\n\tvar lightCache = new LightCache(\"Cache Store One\");\n\n#### **lightCache.get(key)** -- *get key*\n\n    var todoList = lightCache.get('todos');\n\n\n#### **lightCache.set(key, value)** -- *set key*\n\n    lightCache.set('todos', 'first to do');\n    lightCache.set('todos', {foo: bar});\n    lightCache.set('todos', [0, 1, 2]);\n\n#### **lightCache.mget(keys)** -- *get multiple keys*\n\n    var todoList = lightCache.mget(['todos', 'meetings']);\n\n\n#### **lightCache.mset(keys, values)** -- *set multiple keys*\n\n    var todoList = lightCache.mget(\n        ['todos', 'meetings'],\n        [\n            {\n                todo_one: 1\n            },\n            {\n                todo_two: 2\n            }\n        ]\n    );\n\n\n#### **lightCache.exists(key)** -- *checks if a key exists*\n\n    var isKeyExists = lightCache.exists('todos');\n    // true\n\n#### **lightCache.mexists(keys, values)** -- *checks for multiple keys if they exists*\n\n     var areKeysExists = lightCache.mexists(['todos', 'meetings']);\n     {\n         todos: true,\n         meetings: true\n     }\n\n#### **lightCache.del(key)** -- *deletes a key*\n\n    lightCache.del('todos');\n\n#### **lightCache.mdel(keys)** -- *deletes multiple keys*\n\n    lightCache.mdel(['todos','metings']);\n\n#### **lightCache.append(key, value)** -- *appends an object to a key*\n\n    lightCache.append('todos', {todo:3});\n\n#### **lightCache.prepend(key, value)** -- *prepends an object to a key*\n\n    lightCache.prepend('todos', {todo:0});\n\n#### **lightCache.stats()** -- *get stats*\n\n    lightCache.stats();\n    {\n        get: 50,\n        set: 300,\n        mget: 74,\n        mset: 54,\n        exists: 93,\n        mexists: 596,\n        del: 165,\n        mdel: 874,\n        append: 806,\n        prepend: 960\n    }\n\n#### **lightCache.flush()** -- *flush all data*\n\n    lightCache.flush();","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepyronick%2Flight-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepyronick%2Flight-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepyronick%2Flight-cache/lists"}