{"id":15009833,"url":"https://github.com/jamesqin-cn/tinycache","last_synced_at":"2026-02-08T17:30:48.617Z","repository":{"id":62584823,"uuid":"240277293","full_name":"jamesqin-cn/tinycache","owner":"jamesqin-cn","description":"tinycache is a python modules base on local file for any python data struct","archived":false,"fork":false,"pushed_at":"2020-02-15T08:26:20.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T10:51:12.832Z","etag":null,"topics":["cache","pip","python2","python3"],"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/jamesqin-cn.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":"2020-02-13T14:17:04.000Z","updated_at":"2023-02-06T18:20:21.000Z","dependencies_parsed_at":"2022-11-03T21:38:45.132Z","dependency_job_id":null,"html_url":"https://github.com/jamesqin-cn/tinycache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamesqin-cn/tinycache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesqin-cn%2Ftinycache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesqin-cn%2Ftinycache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesqin-cn%2Ftinycache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesqin-cn%2Ftinycache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesqin-cn","download_url":"https://codeload.github.com/jamesqin-cn/tinycache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesqin-cn%2Ftinycache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29238249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"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":["cache","pip","python2","python3"],"created_at":"2024-09-24T19:28:49.807Z","updated_at":"2026-02-08T17:30:48.600Z","avatar_url":"https://github.com/jamesqin-cn.png","language":"Python","readme":"# Tiny Cache\n\n## What is TinyCache?\ntinycache is a python modules base on local file for any python data struct\n\n## Programming Language\n- python 2.7\n- python 3.7\n\n## Install\n```\npip install tinycache \n```\n\n## Quick Start\nuse python decorators syntax to wrap the call target\n```\nfrom tinycache import WithCache\n\n@WithCache(5)\ndef Add(a, b):\n    return a + b\n\nclass Foo():\n    @WithCache(5)\n    def Bar(self, a, b):\n        return a - b\n```\n\n## Cache File Format\ncache file is json format, with filename look like './cache/`\u003cmd5_of_key_str\u003e`'\n```\n{\n    \"created_at\": 1581652043.872242,\n    \"expired_at\": 1581652048.872242,\n    \"key_str\": \"Add(\u0026\u003cclass 'int'\u003e=1\u0026\u003cclass 'int'\u003e=2)\",\n    \"key\": \"9d0aa1c9634aa575696710c7dfb9f018\",\n    \"value\": 3\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesqin-cn%2Ftinycache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesqin-cn%2Ftinycache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesqin-cn%2Ftinycache/lists"}