{"id":18270723,"url":"https://github.com/soffes/SAMCache","last_synced_at":"2025-04-05T01:30:48.415Z","repository":{"id":3194066,"uuid":"4227023","full_name":"soffes/SAMCache","owner":"soffes","description":"Fancy caching with on-disk persistence","archived":true,"fork":true,"pushed_at":"2015-09-08T02:53:10.000Z","size":342,"stargazers_count":194,"open_issues_count":5,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T03:46:16.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Synthetic/SYCache","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soffes.png","metadata":{"files":{"readme":"Readme.markdown","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-05-04T16:52:55.000Z","updated_at":"2025-01-17T15:59:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/soffes/SAMCache","commit_stats":null,"previous_names":["soffes/sscache"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FSAMCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FSAMCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FSAMCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FSAMCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soffes","download_url":"https://codeload.github.com/soffes/SAMCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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-05T11:38:49.658Z","updated_at":"2025-04-05T01:30:48.038Z","avatar_url":"https://github.com/soffes.png","language":"Objective-C","readme":"# SAMCache\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nSimple in memory and on disk cache. It's backed by an [NSCache](https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSCache_Class/Reference/Reference.html) in memory, so it automatically purges itself when memory gets low. Purged memory keys will automatically be loaded from disk the next time the are requested.\n\n## Usage\n\nThe API is simple.\n\n``` objective-c\n- (id)objectForKey:(NSString *)key;\n- (void)objectForKey:(NSString *)key usingBlock:(void (^)(id \u003cNSCopying\u003e object))block;\n- (void)setObject:(id \u003cNSCopying\u003e)object forKey:(NSString *)key;\n```\n\nYou can also use subscripts:\n\n``` objective-c\nSAMCache *cache = [SAMCache sharedCache];\ncache[@\"answer\"] = @42;\nNSLog(@\"The answer is %@\", cache[@\"answer\"]);\n```\n\nSee [SAMCache.h](SAMCache/SAMCache.h) for the full list of methods.\n\n## Adding to Your Project\n\nSimply add `SAMCache.h` and `SAMCache.m` to your project or if you're using CocoaPods, simply add 'SAMCache' to your Podfile.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoffes%2FSAMCache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoffes%2FSAMCache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoffes%2FSAMCache/lists"}