{"id":24118322,"url":"https://github.com/fantasyui-com/url-data-cache","last_synced_at":"2025-02-28T15:43:27.858Z","repository":{"id":57387517,"uuid":"196723336","full_name":"fantasyui-com/url-data-cache","owner":"fantasyui-com","description":"Cache data from a url request.","archived":false,"fork":false,"pushed_at":"2024-06-17T16:16:14.000Z","size":52,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T10:36:42.984Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fantasyui-com.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":"2019-07-13T13:13:14.000Z","updated_at":"2024-06-17T16:16:17.000Z","dependencies_parsed_at":"2024-10-28T03:25:27.897Z","dependency_job_id":"dcf4cf2f-9bdd-4593-88c7-ec043ee7a9af","html_url":"https://github.com/fantasyui-com/url-data-cache","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":0.4,"last_synced_commit":"38f6b375b7a709c40f54b6d57508c83f21dc2eb6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Furl-data-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Furl-data-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Furl-data-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fantasyui-com%2Furl-data-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fantasyui-com","download_url":"https://codeload.github.com/fantasyui-com/url-data-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241176614,"owners_count":19922732,"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":[],"created_at":"2025-01-11T08:19:08.941Z","updated_at":"2025-02-28T15:43:27.821Z","avatar_url":"https://github.com/fantasyui-com.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# url-cache\nCache data from a url request.\n\n```JavaScript\n\n  import urlCacheInstance from 'url-data-cache';\n  const urlDataCache = urlCacheInstance('my-app');\n\n  // or\n\n  const urlDataCache = require('url-data-cache')('my-app');\n\n  // then\n\n\n  // get from cache (also delete expired)\n  const cachedData = urlDataCache.get(url);\n  if(cachedData) return resolve(cachedData);\n\n  // put to cache\n  urlDataCache.put(url, htmlData, '1 hour');\n\n```\n\nSupported time units:\n\n- n second\n- n seconds\n- n minute\n- n minutes\n- n hour\n- n hours\n- n month\n- n months\n\nwhere n is a number\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasyui-com%2Furl-data-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantasyui-com%2Furl-data-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasyui-com%2Furl-data-cache/lists"}