{ "info": { "author": "Jorge Gallegos", "author_email": "kad@blegh.net", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=====================\nBottle-Memcache\n=====================\n\nMemcache is a general-purpose distributed memory caching system that was\noriginally developed by Danga Interactive for LiveJournal, but is now used\nby many other sites.\n\nThis plugin simplifies the use of memcache in your Bottle applications.\nOnce installed, all you have to do is to add a ``mc`` keyword argument\n(configurable) to route callbacks that need a memcache connection.\n\nInstallation\n===============\n\nInstall with one of the following commands::\n\n $ pip install bottle-memcache\n $ easy_install bottle-memcache\n\nor download the latest version from github::\n\n $ git clone git://github.com/bottlepy/bottle-extras.git\n $ cd bottle-extras/memcache\n $ python setup.py install\n\nUsage\n===============\n\nOnce installed to an application, the plugin passes an open\n:class:`memcache.Client` instance to all routes that require an\n``mc`` keyword argument::\n\n import bottle\n import bottle.ext.memcache\n\n app = bottle.Bottle()\n plugin = bottle.ext.memcache.MemcachePlugin(servers=['localhost:11211'])\n app.install(plugin)\n\n @app.route('/show/:item')\n def show(item, mc):\n val = mc.get('item_key')\n if not val:\n mc.set('item_key', item)\n val = mc.get('item_key')\n return template('showitem', item=val)\n\nRoutes that do not expect an ``mc`` keyword argument are not affected.\n\nConfiguration\n=============\n\nThe following configuration options exist for the plugin class:\n\n* **servers**: A list of server:port items to connect to (default: ['localhost:11211',])\n* **timeout**: The timeout value in seconds when connecting (default: 3)\n* **keyword**: The keyword argument name that triggers the plugin (default: 'mc').\n\n", "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/bottlepy/bottle-extras/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bottle-memcache", "package_url": "https://pypi.org/project/bottle-memcache/", "platform": "any", "project_url": "https://pypi.org/project/bottle-memcache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/bottlepy/bottle-extras/" }, "release_url": "https://pypi.org/project/bottle-memcache/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Memcache integration for Bottle.", "version": "0.2.1" }, "last_serial": 852355, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "75804e277ca96978a9ca570b1862e346", "sha256": "07da5fb8e0a8f4ca9369a0509f7b5ba51917ef44de32c41b622f2f8741a40cf3" }, "downloads": -1, "filename": "bottle-memcache-0.1.tar.gz", "has_sig": false, "md5_digest": "75804e277ca96978a9ca570b1862e346", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431, "upload_time": "2012-02-20T08:58:12", "url": "https://files.pythonhosted.org/packages/ed/c3/e1e0288d3ce7dc4ce42723490b18bdc65ba0e99a16a0c3f04e0b1ff29029/bottle-memcache-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d6e8d293a94a722516ece499764a2875", "sha256": "ccc2d9a8b6cb0a61459678e32e7604fa97a7d378747fe203b24d5416ee041c77" }, "downloads": -1, "filename": "bottle-memcache-0.2.tar.gz", "has_sig": false, "md5_digest": "d6e8d293a94a722516ece499764a2875", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2542, "upload_time": "2012-07-30T04:45:53", "url": "https://files.pythonhosted.org/packages/aa/8f/95e2252910d586d80365b160bf4207aedd59f674d40a3707a4a59b479062/bottle-memcache-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4ddcb919222afdef3cab63636f09a11e", "sha256": "849ba7861ada991cc46735b53c7e2241bbdc27d91982bd08c1eb7318ecd97a95" }, "downloads": -1, "filename": "bottle-memcache-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4ddcb919222afdef3cab63636f09a11e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2583, "upload_time": "2013-08-29T17:23:02", "url": "https://files.pythonhosted.org/packages/69/0e/48bb31fe35492610a5ad097e9e69d5faa578dc45055adf5c55eb0e4cebe1/bottle-memcache-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4ddcb919222afdef3cab63636f09a11e", "sha256": "849ba7861ada991cc46735b53c7e2241bbdc27d91982bd08c1eb7318ecd97a95" }, "downloads": -1, "filename": "bottle-memcache-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4ddcb919222afdef3cab63636f09a11e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2583, "upload_time": "2013-08-29T17:23:02", "url": "https://files.pythonhosted.org/packages/69/0e/48bb31fe35492610a5ad097e9e69d5faa578dc45055adf5c55eb0e4cebe1/bottle-memcache-0.2.1.tar.gz" } ] }