{ "info": { "author": "Ikuya Yamada", "author_email": "ikuya@ikuya.net", "bugtrack_url": null, "classifiers": [], "description": "mongo-memoize\n=============\n\n.. image:: https://badge.fury.io/py/mongo-memoize.png\n :target: http://badge.fury.io/py/mongo-memoize\n\n.. image:: https://travis-ci.org/ikuyamada/mongo-memoize.png?branch=master\n :target: https://travis-ci.org/ikuyamada/mongo-memoize\n\nA Python decorator library for instantly caching function results in MongoDB.\n\nBasic Usage\n-----------\n\n.. code-block:: python\n\n from mongo_memoize import memoize\n\n @memoize()\n def func():\n ...\n\nCustomization\n-------------\n\nYou can specify custom *serializer* and *key_generator*. *serializer* is used to serialize function results in order to convert them into formats that can be stored in MongoDB. *key_generator* generates a cache key from the function arguments. *PickleSerializer* and *PickleMD5KeyGenerator* are used by default.\n\n.. code-block:: python\n\n from mongo_memoize import memoize, NoopSerializer, PickleMD5KeyGenerator\n\n @memoize(serializer=NoopSerializer(), key_generator=PickleMD5KeyGenerator())\n def func():\n ...\n\nUsing Capped Collection\n-----------------------\n\n*Capped collection* is a MongoDB feature which allows to limit the maximum size of the collection. By setting `capped=True`, a capped collection is created automatically.\n\n.. code-block:: python\n\n from mongo_memoize import memoize\n\n @memoize(capped=True, capped_size=100000000)\n def func():\n ...\n\nDocumentation\n-------------\n\nhttp://mongo-memoize.readthedocs.org/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/ikuyamada/mongo-memoize/", "keywords": null, "license": "Copyright 2014 Ikuya Yamada\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", "maintainer": null, "maintainer_email": null, "name": "mongo-memoize", "package_url": "https://pypi.org/project/mongo-memoize/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mongo-memoize/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/ikuyamada/mongo-memoize/" }, "release_url": "https://pypi.org/project/mongo-memoize/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "A Python decorator library for caching function results in MongoDB", "version": "0.0.4" }, "last_serial": 1299916, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "632a1e75d434e15469b5cd59155adbb0", "sha256": "a06fbd790f35bfd1555545d0faeab07601a08191332bb4731ca919af02ebee05" }, "downloads": -1, "filename": "mongo-memoize-0.0.3.tar.gz", "has_sig": false, "md5_digest": "632a1e75d434e15469b5cd59155adbb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4326, "upload_time": "2014-07-17T14:45:55", "url": "https://files.pythonhosted.org/packages/49/b3/d59320a134742cef1a3d88d49eee03400f92920abcedfce8f2d1f2d9ea90/mongo-memoize-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "377cbaa6b104e63e10b73421c01ea935", "sha256": "c1500e25f2ca54be0fae5f3631db7ce3be0e92daa3e66d665dbe8b4c316b8130" }, "downloads": -1, "filename": "mongo-memoize-0.0.4.tar.gz", "has_sig": false, "md5_digest": "377cbaa6b104e63e10b73421c01ea935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4334, "upload_time": "2014-11-09T09:01:38", "url": "https://files.pythonhosted.org/packages/9c/cf/d1a17858125f66ccce612c94bdfc8a41d118d676b3197e004cc8f318738b/mongo-memoize-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "377cbaa6b104e63e10b73421c01ea935", "sha256": "c1500e25f2ca54be0fae5f3631db7ce3be0e92daa3e66d665dbe8b4c316b8130" }, "downloads": -1, "filename": "mongo-memoize-0.0.4.tar.gz", "has_sig": false, "md5_digest": "377cbaa6b104e63e10b73421c01ea935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4334, "upload_time": "2014-11-09T09:01:38", "url": "https://files.pythonhosted.org/packages/9c/cf/d1a17858125f66ccce612c94bdfc8a41d118d676b3197e004cc8f318738b/mongo-memoize-0.0.4.tar.gz" } ] }