{ "info": { "author": "Fatih K\u0131l\u0131\u00e7", "author_email": "m.fatihklc0@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Django Distributed File Based Cache\nThe Django Distributed File Based Cache is a library that I developed for myself to use in my small projects.\n\n## How it works?\nThanks to my other library([Django Serviceless Distributor](https://github.com/FKLC/django-serviceless-distributor)) I can distribute any functions easily across nodes so I wrote a cache backend if you wonder how it works you should definitely see [Django Serviceless Distributor](https://github.com/FKLC/django-serviceless-distributor)\n\n## Is it efficient to use?\nThe answer is depends on how many nodes you have in your environment. If it is over 5 that maybe useless because you know if you can pay for 5 why not 1 for the cache. Also replicating data across request processing servers not the best approach.\n\n## Quick Start\nInstall library\n```bash\npip install django-distributed-file-based-cache\n```\n\nConfigure your `urls.py`\n```py\n ....\n path(\"\", include(\"distributed_file_based_cache.urls\")),\n ....\n```\n\nConfigure your `settings.py`\n```py\n# Set as cache backend\nCACHES = {\n \"default\": {\n \"BACKEND\": \"distributed_file_based_cache.cache.DistributedFileBasedCache\",\n \"LOCATION\": \"cache\",\n }\n}\n\n# Nodes IPs (Do not use load balancer IP, we couldn't know\n# if all nodes affected if you use load balancer IP)\nSERVICELESS_DISTRIBUTOR_NODES = [\"http://10.0.0.0\", \"http://10.0.0.1\", ...]\n```\n\n\n### (Not) Frequently Asked Questions\nMost of the answers can be found on [Django Serviceless Distributor](https://github.com/FKLC/django-serviceless-distributor) but I'll update if I'll receive specific question about this library.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://pypi.org/project/django-distributed-file-based-cache/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FKLC/django-distributed-file-based-cache", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-distributed-file-based-cache", "package_url": "https://pypi.org/project/django-distributed-file-based-cache/", "platform": "", "project_url": "https://pypi.org/project/django-distributed-file-based-cache/", "project_urls": { "Download": "https://pypi.org/project/django-distributed-file-based-cache/", "Homepage": "https://github.com/FKLC/django-distributed-file-based-cache" }, "release_url": "https://pypi.org/project/django-distributed-file-based-cache/1.0.3/", "requires_dist": [ "django-serviceless-distributor" ], "requires_python": "", "summary": "A simple Django app to sync file caches over all nodes.", "version": "1.0.3" }, "last_serial": 5007915, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "ab2e9fbb3f1d415293e93bee1b35501e", "sha256": "ac2e472eff2df266e83b6aff2683d1b59533a9d371fe5ca86844d84e5b42a0b0" }, "downloads": -1, "filename": "django-distributed-file-based-cache-1.0.2.tar.gz", "has_sig": false, "md5_digest": "ab2e9fbb3f1d415293e93bee1b35501e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3403, "upload_time": "2019-03-10T10:33:03", "url": "https://files.pythonhosted.org/packages/9a/5f/31214a26b9d3174ff6997ff5ecaed85ab1bfcc72208ea55b2e18c012c4e0/django-distributed-file-based-cache-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e66e672705e35fe25e1362f8ce6f8b7e", "sha256": "87406cf0314b98f3966a483aca1a38401bfb2ee4eab7d07aa82369c70a55cb7e" }, "downloads": -1, "filename": "django_distributed_file_based_cache-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e66e672705e35fe25e1362f8ce6f8b7e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4625, "upload_time": "2019-03-30T20:54:01", "url": "https://files.pythonhosted.org/packages/8d/f7/8295fc8ead791ff5c2592c8286971f56c88f8f9b21fbeaf10f6b3630a47e/django_distributed_file_based_cache-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "45a4dd4a5cd46600de9d52f8ccd2d033", "sha256": "03abdb09995e50c3f4112b7bbd87bc5aa46faa658b0120c77efd85be2c75f617" }, "downloads": -1, "filename": "django-distributed-file-based-cache-1.0.3.tar.gz", "has_sig": false, "md5_digest": "45a4dd4a5cd46600de9d52f8ccd2d033", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3408, "upload_time": "2019-03-30T20:54:02", "url": "https://files.pythonhosted.org/packages/ea/ec/cc217756c04d6f0c322045494193e8d473ad72b483f4466c4bdd16fdcb56/django-distributed-file-based-cache-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e66e672705e35fe25e1362f8ce6f8b7e", "sha256": "87406cf0314b98f3966a483aca1a38401bfb2ee4eab7d07aa82369c70a55cb7e" }, "downloads": -1, "filename": "django_distributed_file_based_cache-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e66e672705e35fe25e1362f8ce6f8b7e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4625, "upload_time": "2019-03-30T20:54:01", "url": "https://files.pythonhosted.org/packages/8d/f7/8295fc8ead791ff5c2592c8286971f56c88f8f9b21fbeaf10f6b3630a47e/django_distributed_file_based_cache-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "45a4dd4a5cd46600de9d52f8ccd2d033", "sha256": "03abdb09995e50c3f4112b7bbd87bc5aa46faa658b0120c77efd85be2c75f617" }, "downloads": -1, "filename": "django-distributed-file-based-cache-1.0.3.tar.gz", "has_sig": false, "md5_digest": "45a4dd4a5cd46600de9d52f8ccd2d033", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3408, "upload_time": "2019-03-30T20:54:02", "url": "https://files.pythonhosted.org/packages/ea/ec/cc217756c04d6f0c322045494193e8d473ad72b483f4466c4bdd16fdcb56/django-distributed-file-based-cache-1.0.3.tar.gz" } ] }