{"id":21108959,"url":"https://github.com/pajaydev/instore-cache","last_synced_at":"2025-10-03T19:59:02.116Z","repository":{"id":36581345,"uuid":"224035501","full_name":"pajaydev/instore-cache","owner":"pajaydev","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-12T20:54:11.000Z","size":151,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T19:45:34.214Z","etag":null,"topics":["cache","cache-token","expirable","expirable-cache","memory-cache"],"latest_commit_sha":null,"homepage":null,"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/pajaydev.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}},"created_at":"2019-11-25T20:30:01.000Z","updated_at":"2023-03-04T05:22:45.000Z","dependencies_parsed_at":"2022-08-08T16:00:41.895Z","dependency_job_id":null,"html_url":"https://github.com/pajaydev/instore-cache","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/pajaydev%2Finstore-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Finstore-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Finstore-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Finstore-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pajaydev","download_url":"https://codeload.github.com/pajaydev/instore-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243553167,"owners_count":20309683,"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-token","expirable","expirable-cache","memory-cache"],"created_at":"2024-11-20T00:49:46.431Z","updated_at":"2025-10-03T19:58:57.053Z","avatar_url":"https://github.com/pajaydev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# instore-cache\n\nnode module to cache instore.\n\n- - -\n### Install.\n```sh\nnpm install instore-cache\n\n# yarn \nyarn add instore-cache\n\n```\n### Looking to cache access token in your application ?.\n\nYou can use `expirable-cache` which caches until the time exceeds the expiry time.\n\n```javascript\nconst { expirableCache } = require('instore-cache');\nconst expirableCache = new ExpirableCache(options);\nexpirableCache.set('SAMPLE_KEY_EXPIRY', \"121241323qweerttyysdf\", 10);\nexpirableCache.get('SAMPLE_KEY_EXPIRY');\n```\n\n### options\n```json\n{\n  \"expireTime\":5000, // expiry time above which the record will be removed.\n  \"callback\": \"any function to call when the time exceeds expiry time\"\n} \n```\n### Features\n\n  * you can specify the expiration time and provide the callback which calls after time has been expired.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpajaydev%2Finstore-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpajaydev%2Finstore-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpajaydev%2Finstore-cache/lists"}