{ "info": { "author": "Leo Howell", "author_email": "leohowell.com@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Web Environment", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "redis-lru\n=========\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install redis-lru\n\n\nIntroduction\n------------\n\nIt's often useful to have an lru redis cache. Of course, it's also desirable not to have the cache grow too large, and cache expiration is often desirable.\nThis module provides such a cache.\n\nredis-lru supports CPython 3.4+\n\nFor the most part, you can just use it like this:\n\n.. code-block:: python\n\n import redis\n from redis_lru import RedisLRU\n\n client = redis.StrictRedis()\n cache = RedisLRU(client)\n\n @cache\n def f(x):\n print(\"Calling f({})\".format(x))\n return x\n\n\n f(3) # This will print \"Calling f(3)\", will return 3\n f(3) # This will not print anything, but will return 3 (unless 15 minutes have passed between the first and second function call).\n\n\n\n0.1.0\n=====\n- Refactor RedisLRU class for a clean and neat implement.\n- Stop supporting Python 2.\n- Fix bugs in test cases.\n- Added clean cache option at process exit.\n\n0.0.4\n=====\n- Generate `unique_key` automatically so your may never get touch this argument.\n- Improved exception processing, now you won't receive any exception by default.\n- Added unittest for `redis_lru_cache` decorator and `RedisLRUCacheDict`\n- Added more type of cache usage statistic type like `POP`, `DEL` etc.\n- Added changes log.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leohowell/redis-lru", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "redis-lru", "package_url": "https://pypi.org/project/redis-lru/", "platform": "", "project_url": "https://pypi.org/project/redis-lru/", "project_urls": { "Homepage": "https://github.com/leohowell/redis-lru" }, "release_url": "https://pypi.org/project/redis-lru/0.1.0/", "requires_dist": [ "redis" ], "requires_python": ">=3.4", "summary": "LRU cache for Python. Use Redis as backend. Provides a dictionary-like object as well as a method decorator.", "version": "0.1.0" }, "last_serial": 5370364, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "eb8db07f99678193b174a1a36bc1660b", "sha256": "7512fa4286b47f01d0dff05c6a76422ae59f490171f7293992504066ba56424d" }, "downloads": -1, "filename": "redis_lru-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eb8db07f99678193b174a1a36bc1660b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*", "size": 5616, "upload_time": "2018-02-12T16:04:29", "url": "https://files.pythonhosted.org/packages/9a/0d/bbf75553db019b4b33ac9789a20e1e955fd10d1df0ca5808abf2a51775d0/redis_lru-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "197c13c0c63c7b22e7657ccc4968e95d", "sha256": "c98653a794512e2cc942088683f26444afa0e0f4092b64837c6f08f8895a7270" }, "downloads": -1, "filename": "redis-lru-0.0.2.tar.gz", "has_sig": false, "md5_digest": "197c13c0c63c7b22e7657ccc4968e95d", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*", "size": 3701, "upload_time": "2018-02-12T16:04:32", "url": "https://files.pythonhosted.org/packages/9c/31/b6d3212a3d3a58b427675c10c9a0e5005c2477ebf29090443a564fca44bd/redis-lru-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a26eaaa284c6bcd484c320da893b4f7f", "sha256": "4e496f2ca7c7c0160c28229df82c6e3afed0abc2431f31c967f868fc755a2fc9" }, "downloads": -1, "filename": "redis_lru-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a26eaaa284c6bcd484c320da893b4f7f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*", "size": 5663, "upload_time": "2018-02-13T03:06:33", "url": "https://files.pythonhosted.org/packages/1c/87/3fb431e5f4d609828a71595b226140429c8fb4e561b06b94af3f7c80d044/redis_lru-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c972e9828b1c8a0590ac0c0a2910fdbc", "sha256": "5e4909f91f2b3c2eb2e429eb54a468dafd5eab22663eda42085c6535d76c3dd3" }, "downloads": -1, "filename": "redis-lru-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c972e9828b1c8a0590ac0c0a2910fdbc", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*", "size": 3729, "upload_time": "2018-02-13T03:06:35", "url": "https://files.pythonhosted.org/packages/a1/83/b158c89a13faaf478e5cec6b6a876836b2a3f82dfeeb09516d0b7330b0aa/redis-lru-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8bcfcd21d1c2cd3e2ddf38aad6960d97", "sha256": "36727ce2715cdd341a5115baf8674750825ab7b5e9d559983d8c0053e0f5e7c5" }, "downloads": -1, "filename": "redis_lru-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8bcfcd21d1c2cd3e2ddf38aad6960d97", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*", "size": 8036, "upload_time": "2018-02-14T14:02:50", "url": "https://files.pythonhosted.org/packages/2b/97/0d9285fb2254ae90d365f44450205f159d0a8d2997aa024a3f116449657c/redis_lru-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "170ce9f38541705eb20d5dae06da6168", "sha256": "452a3eaf44b737e0afac8a1c2e82e508584d42e9f33d47cd02ebc6fab0ac4f47" }, "downloads": -1, "filename": "redis-lru-0.0.4.tar.gz", "has_sig": false, "md5_digest": "170ce9f38541705eb20d5dae06da6168", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*", "size": 5130, "upload_time": "2018-02-14T14:02:52", "url": "https://files.pythonhosted.org/packages/2c/07/5d4c41c09611a0eacffb0e57852c2de474e295278e1422e50a29f59ed56c/redis-lru-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "46c3c7a742ab40d39d0ab45466ef3f27", "sha256": "ee2be8f0bc55d6778ef779586dd2f7e0546e0ff35411e72c986f570d8b1ecf6a" }, "downloads": -1, "filename": "redis_lru-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "46c3c7a742ab40d39d0ab45466ef3f27", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.4", "size": 5740, "upload_time": "2019-06-07T07:10:49", "url": "https://files.pythonhosted.org/packages/0f/9b/2c2fc77a7aa1e43ac922781dc7ca162bf24ae636141d4bc3b1a2c83dd6bb/redis_lru-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "88e4844ea9621a8e7dec76c294908015", "sha256": "44ffaa1a18bc80ad07895d62b0c2d65e26598d2b6410861293f6cbe82b40a3cd" }, "downloads": -1, "filename": "redis-lru-0.1.0.tar.gz", "has_sig": false, "md5_digest": "88e4844ea9621a8e7dec76c294908015", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3486, "upload_time": "2019-06-07T07:10:51", "url": "https://files.pythonhosted.org/packages/b6/1d/b20eef9cf1cb4e1f3983d8a881365cb2abd9cdeca57eb07c3ed9f3b27689/redis-lru-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "46c3c7a742ab40d39d0ab45466ef3f27", "sha256": "ee2be8f0bc55d6778ef779586dd2f7e0546e0ff35411e72c986f570d8b1ecf6a" }, "downloads": -1, "filename": "redis_lru-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "46c3c7a742ab40d39d0ab45466ef3f27", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.4", "size": 5740, "upload_time": "2019-06-07T07:10:49", "url": "https://files.pythonhosted.org/packages/0f/9b/2c2fc77a7aa1e43ac922781dc7ca162bf24ae636141d4bc3b1a2c83dd6bb/redis_lru-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "88e4844ea9621a8e7dec76c294908015", "sha256": "44ffaa1a18bc80ad07895d62b0c2d65e26598d2b6410861293f6cbe82b40a3cd" }, "downloads": -1, "filename": "redis-lru-0.1.0.tar.gz", "has_sig": false, "md5_digest": "88e4844ea9621a8e7dec76c294908015", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 3486, "upload_time": "2019-06-07T07:10:51", "url": "https://files.pythonhosted.org/packages/b6/1d/b20eef9cf1cb4e1f3983d8a881365cb2abd9cdeca57eb07c3ed9f3b27689/redis-lru-0.1.0.tar.gz" } ] }