{"id":20956650,"url":"https://github.com/fastack-dev/fastack-cache","last_synced_at":"2025-03-13T06:12:09.609Z","repository":{"id":42466422,"uuid":"440142492","full_name":"fastack-dev/fastack-cache","owner":"fastack-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-29T16:48:55.000Z","size":107,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-29T18:03:06.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fastack-dev.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T11:16:26.000Z","updated_at":"2024-08-05T19:25:44.749Z","dependencies_parsed_at":"2023-01-31T00:45:21.190Z","dependency_job_id":"55000d1c-3219-4d57-bfda-d1ff12750ea4","html_url":"https://github.com/fastack-dev/fastack-cache","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.1470588235294118,"last_synced_commit":"fd02173368214d912a7f5866bce55cbe92f7c3ed"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastack-dev%2Ffastack-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastack-dev%2Ffastack-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastack-dev%2Ffastack-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastack-dev%2Ffastack-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastack-dev","download_url":"https://codeload.github.com/fastack-dev/fastack-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243352037,"owners_count":20276916,"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-19T01:27:17.024Z","updated_at":"2025-03-13T06:12:09.591Z","avatar_url":"https://github.com/fastack-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastack-cache\n\nfastack-cache is a caching plugin for [fastack](https://github.com/fastack-dev/fastack) ❤️\n\nThis plugin is inspired by the [django cache framework](https://docs.djangoproject.com/en/4.0/topics/cache/) and [django-redis](https://github.com/jazzband/django-redis)!\n\nSupported cache backend:\n\n* Redis:\n    * ``fastack_cache.backends.redis.RedisBackend`` - Sync version\n    * ``fastack_cache.backends.aioredis.AioRedisBackend`` - Async version\n\n# Installation\n\n```\npip install -U fastack-cache\n```\n\n# Usage\n\nAdd the plugin to your project configuration:\n\n```python\nPLUGINS = [\n    \"fastack_cache\",\n    ...\n]\n```\n\nConfiguration:\n\n```python\nREDIS_HOST = \"localhost\"\nREDIS_PORT = 6900\nREDIS_DB = 0\nCACHES = {\n    # cache name\n    \"default\": {\n        # cache backend\n        \"BACKEND\": \"fastack_cache.backends.redis.RedisBackend\",\n        # Cache options to be passed to the Redis(...) class\n        \"OPTIONS\": {\n            \"host\": REDIS_HOST,\n            \"port\": REDIS_PORT,\n            \"db\": REDIS_DB,\n        },\n        # Serializer for converting data into cache\n        \"SERIALIZER\": {\n            \"CLASS\": \"fastack_cache.serializers.JSONSerializer\",\n            \"OPTIONS\": {\n                # Option to pass when dumps() method in serializer class is called\n                \"DUMPS\": {},\n                # Option to pass when loads() method in serializer class is called\n                \"LOADS\": {}\n            }\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastack-dev%2Ffastack-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastack-dev%2Ffastack-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastack-dev%2Ffastack-cache/lists"}