{"id":16095913,"url":"https://github.com/joakin/jquery-cache","last_synced_at":"2026-01-20T03:01:32.729Z","repository":{"id":141453783,"uuid":"2119125","full_name":"joakin/jquery-cache","owner":"joakin","description":"A little cache system to use with jQuery to improve performance","archived":false,"fork":false,"pushed_at":"2011-07-28T15:43:16.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T20:15:41.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/joakin.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":"2011-07-28T15:27:11.000Z","updated_at":"2014-01-18T05:30:22.000Z","dependencies_parsed_at":"2023-03-12T04:46:06.462Z","dependency_job_id":null,"html_url":"https://github.com/joakin/jquery-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joakin/jquery-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fjquery-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fjquery-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fjquery-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fjquery-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joakin","download_url":"https://codeload.github.com/joakin/jquery-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fjquery-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28594958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":[],"created_at":"2024-10-09T17:09:32.270Z","updated_at":"2026-01-20T03:01:32.714Z","avatar_url":"https://github.com/joakin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"jQuery Cache\n============\n\nThis is a cache system to use with jQuery, so that you dont have to perform the\nsame selectors over and over or endirt your global namespace with jquery filled\nvars.\n\nHow it works\n------------\n\nInclude the code in cache.js in your project, and to use it:\n\n### Add cached items\n\nTo add an item to the cache at the begining or init of your code do a:\n\n    $c.add('entryName', 'selector');\n\nFor example to cache all the divs with class `special box`:\n\n    $c.add('specialBoxes', '.specialbox');\n\n### Get cached items\n\nTo get an item from the cache you do:\n\n    var $something = $c.get('entryName');\n\nFor example if we wanted to retrieve the special boxes we would do:\n\n    var $sb = $c.get('specialBoxes');\n\n### Refresh some cache entry\n\nThere may be times where you need to refresh the cache because the elements set\nhas changed. When you want that you do:\n\n    $c.refresh('entryName');\n\nWhat is this useful for?\n------------------------\n\nFor starters all your selectors will be in the initialisation of your code\ntogether, so they are easier to change and identify without going through all\nyour code. \n\nIt also uses a lazy retrieval so your selector will not be executed until the\nfirst time you call the cache to get the entry, so no extra jQuery selections\nand such.\n\nAnything else?\n--------------\n\nIn a not far future I will add also the capability to accept jQuery objects\nwhen adding entries, if somebody wants to do that, I would be grateful.\n\n\n\nThat's it for now, give it a try and bring us your comments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fjquery-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakin%2Fjquery-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fjquery-cache/lists"}