{"id":23968615,"url":"https://github.com/vutran/js-caching","last_synced_at":"2025-10-26T14:37:25.038Z","repository":{"id":5120063,"uuid":"6284663","full_name":"vutran/js-caching","owner":"vutran","description":"Client-side caching with JavaScript, HTML5 and shitty browser friendly.","archived":false,"fork":false,"pushed_at":"2013-10-29T16:21:59.000Z","size":149,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T06:34:39.408Z","etag":null,"topics":["caching","javascript","localstorage"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"infinum/android_dbinspector","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vutran.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":"2012-10-18T19:48:14.000Z","updated_at":"2015-12-11T11:54:23.000Z","dependencies_parsed_at":"2022-09-19T23:10:29.792Z","dependency_job_id":null,"html_url":"https://github.com/vutran/js-caching","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fjs-caching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fjs-caching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fjs-caching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fjs-caching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutran","download_url":"https://codeload.github.com/vutran/js-caching/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154998,"owners_count":21056542,"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":["caching","javascript","localstorage"],"created_at":"2025-01-07T00:15:22.314Z","updated_at":"2025-10-26T14:37:20.005Z","avatar_url":"https://github.com/vutran.png","language":"JavaScript","readme":"#JavaScript Caching\n\nProvides an API for client-side caching via a JS variable on a page instance\nor through the HTML5 localStorage/sessionStorage API\n\n#Storage Types\n\n##JavaScript\n\nThis type of storage only lasts for a single page load instance.\n\n##Session Storage\n\nUseful for persistent page load instances. If the user refreshes\nthe browser or browse to another site and comes back, the stored\ndata is still there unless the cache timeout is met.\n\n##Local Storage\n\nSame as sessionStorage but uses localStorage system to allow for\ncaching even when the browser is closed and reopened (where available)\n\n\n#Usage\n\n##Set a value\n    cache.set('some_key', 'some_value_to_store');\n\n##Retrieve a stored value\n    va value = cache.get('some_key');\n    console.log(value); // returns \"some_value_to_store\"\n\n##Reset the cache\n    cache.reset();","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fjs-caching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutran%2Fjs-caching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fjs-caching/lists"}