{"id":20543775,"url":"https://github.com/isarandi/picklecachefun","last_synced_at":"2026-04-12T23:02:00.553Z","repository":{"id":191338534,"uuid":"649665100","full_name":"isarandi/picklecachefun","owner":"isarandi","description":"Cache function result to disk using pickle","archived":false,"fork":false,"pushed_at":"2023-06-05T11:58:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T15:36:00.010Z","etag":null,"topics":["cache","caching","file-cache","persistence","pickle","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isarandi.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}},"created_at":"2023-06-05T11:22:07.000Z","updated_at":"2023-06-05T23:58:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"30374a1b-0a54-49e0-84ee-632217288b58","html_url":"https://github.com/isarandi/picklecachefun","commit_stats":null,"previous_names":["isarandi/picklecachefun"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isarandi%2Fpicklecachefun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isarandi%2Fpicklecachefun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isarandi%2Fpicklecachefun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isarandi%2Fpicklecachefun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isarandi","download_url":"https://codeload.github.com/isarandi/picklecachefun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242150748,"owners_count":20080006,"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":["cache","caching","file-cache","persistence","pickle","python"],"created_at":"2024-11-16T01:40:22.528Z","updated_at":"2026-04-12T23:02:00.471Z","avatar_url":"https://github.com/isarandi.png","language":"Python","readme":"# picklecachefun\nCache the results of function calls to disk, using pickle, similarly to `functools.cache` in the standard library.\n\n## Example usage\n\nBasic use:\n\n```python\nimport picklecachefun\n\n@picklecachefun.cache('/path/to/filename.pkl')\ndef some_function(some_arg):\n    ....\n    return stuff\n```\n\nA default cache root can be set too:\n\n```python\npicklecachefun.set_cache_root('/path/to/cache')\n\n@picklecachefun.cache('filename.pkl')\n...\n\n```\n\nThe cache can be invalidated through setting a `min_time`.\nIn short, set the `min_time` to the timestamp of \nwhen you most recently changed the function definition and need\nto invalidate the cache.\n\n```python\n@picklecachefun.cache('filename.pkl', min_time=\"2023-12-04T20:56:48\")\n...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisarandi%2Fpicklecachefun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisarandi%2Fpicklecachefun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisarandi%2Fpicklecachefun/lists"}