muffin-memcached

UNKNOWN


Keywords
asyncio
License
MIT
Install
pip install muffin-memcached==0.1.0

Documentation

Muffin-Memcached

Muffin-Memcached -- A simple memcached plugin for muffin framework.

Build Status

Requirements

  • python >= 3.4
  • muffin >= 0.5.5

Installation

Muffin-Memcached should be installed using pip:

pip install muffin-memcached

Usage

Add muffin-memcached to muffin plugin list:

import muffin


app = muffin.Application(
    'example',

    PLUGINS=(
        'muffin_memcached',
    )
)

And use memcached plugin:

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

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

Options

MEMCACHED_HOST Host of memcached server (127.0.0.1)
MEMCACHED_PORT Port of memcached server (11211)
MEMCACHED_POOLSIZE Size of connection pool (1)

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/drgarcia1986/muffin-memcached/issues

Contributing

Development of Muffin-Memcached happens at: https://github.com/drgarcia1986/muffin-memcached

Contributors

License

Licensed under a MIT license.