{"id":19132362,"url":"https://github.com/jbryer/datacache","last_synced_at":"2025-10-19T17:21:49.180Z","repository":{"id":19129982,"uuid":"22359578","full_name":"jbryer/DataCache","owner":"jbryer","description":"Package to maintain a data cache.","archived":false,"fork":false,"pushed_at":"2019-02-21T17:07:46.000Z","size":45,"stargazers_count":7,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T13:44:30.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","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/jbryer.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":"2014-07-28T22:07:21.000Z","updated_at":"2020-08-06T01:10:55.000Z","dependencies_parsed_at":"2022-09-13T09:24:37.802Z","dependency_job_id":null,"html_url":"https://github.com/jbryer/DataCache","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/jbryer%2FDataCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbryer%2FDataCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbryer%2FDataCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbryer%2FDataCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbryer","download_url":"https://codeload.github.com/jbryer/DataCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252721060,"owners_count":21793746,"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":"2024-11-09T06:17:58.172Z","updated_at":"2025-10-19T17:21:44.150Z","avatar_url":"https://github.com/jbryer.png","language":"R","readme":"#### DataCache: R Package for Managing Data Caches\n\n[![Build Status](https://api.travis-ci.org/jbryer/DataCache.svg)](https://travis-ci.org/jbryer/DataCache?branch=master)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/DataCache)](http://cran.r-project.org/package=DataCache)\n\n\nThe latest development version can be installed using the `devtools` package:\n\n```\ndevtools::install_github('jbryer/DataCache')\n```\n\n#### Example\n\nThis example will load weather data.\n\n```\nlibrary('weatherData')\nlibrary('DataCache')\n\nloadWeatherData \u003c- function(station_id='ALB') {\n\treturn(list(weather=getDetailedWeather(station_id, Sys.Date())))\n}\n\ncacheData(loadWeatherData)\ncache.info()\ncache.info(stale=c('2mins'=nMinutes(2)))\n```\n\nWait two minutes so the cache becomes stale.\n\n```\nSys.sleep(120)\ncacheData(loadWeatherData, nMinutes(2))\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbryer%2Fdatacache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbryer%2Fdatacache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbryer%2Fdatacache/lists"}