跳转到主要内容

未提供项目描述

项目描述

松饼-memcached
############

.. _description

松饼-memcached -- 一个简单的muffin_框架的memcached插件。

.. _badges

.. image:: http://img.shields.io/travis/drgarcia1986/muffin-memcached.svg?style=flat-square
:target: http://travis-ci.org/drgarcia1986/muffin-memcached
:alt: 构建状态

.. _requirements

需求
=============

- python >= 3.4
- muffin >= 0.5.5

.. _installation

安装
=============

**Muffin-Memcached** 应使用pip进行安装:

pip install muffin-memcached

.. _usage

使用方法
=====

将 *muffin-memcached* 添加到muffin插件列表

.. code-block:: python

import muffin


app = muffin.Application(
'example',

PLUGINS=(
'muffin_memcached',
)
)

并使用 *memcached* 插件

.. code-block:: python

@app.register('/cached')
class Example(muffin.Handler)

@asyncio.coroutine
def get(self, request)
return (yield from app.ps.memcached.get('foo'))

.. _options

选项
-------

========================== ==============================================================
*MEMCACHED_HOST* memcached服务器的主机(``127.0.0.1``)
*MEMCACHED_PORT* memcached服务器的端口(``11211``)
*MEMCACHED_POOLSIZE* 连接池的大小(``1``)
========================== ==============================================================

.. _bugtracker

错误跟踪器
===========

如果您有任何建议、错误报告或
烦恼,请向https://github.com/drgarcia1986/muffin-memcached/issues的issue跟踪器报告


.. _contributing

贡献
============

马芬-Memcached 的开发地点为:https://github.com/drgarcia1986/muffin-memcached


贡献者
=============

* drgarcia1986_ (Diego Garcia)

.. _license

许可证
=======

遵循 `MIT 许可协议`_。

.. _links


.. _muffin: https://github.com/klen/muffin
.. _drgarcia1986: https://github.com/drgarcia1986
.. _MIT license: https://open-source.org.cn/licenses/MIT

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码分发

muffin-memcached-0.2.0.tar.gz (3.8 kB 查看哈希值)

上传时间 源代码

支持者