Metadata-Version: 1.1
Name: gmemcache
Version: 0.0.2
Summary: A gevent-compatible Memcached Python client with binary protocol and consistent hashing support
Home-page: http://github.com/studio-ousia/gmemcache/
Author: Studio Ousia
Author-email: admin@ousia.jp
License: Copyright 2013 Studio Ousia

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Description: gmemcache
        =========
        
        .. image:: https://badge.fury.io/py/gmemcache.png
            :target: http://badge.fury.io/py/gmemcache
        
        .. image:: https://travis-ci.org/studio-ousia/gmemcache.png?branch=master
            :target: https://travis-ci.org/studio-ousia/gmemcache
        
        A gevent-compatible Memcached Python client with binary protocol and consistent hashing support.
        
        Currently, only the following four methods are supported:
        
        * get
        * get_multi
        * set
        * set_multi
        
        Installation
        ------------
        
        .. code-block:: bash
        
            $ pip install Cython
            $ pip install gmemcache
        
        
        Basic Usage
        -----------
        
        .. code-block:: python
        
            >>> from gmemcache import MemcacheConnection
            >>> client = MemcacheConnection(['127.0.0.1:11211'])
            >>> client.is_connected()
            True
            >>> client.set_multi({'key1': 'value1', 'key2': 'value2'})
            True
            >>> client.get_multi(['key1', 'key2', 'key3'])
            {'key1': u'value1', 'key2': u'value2'}
            >>> client.close()
        
        
        Using with `gsocketpool <https://github.com/studio-ousia/gsocketpool>`_
        -----------------------------------------------------------------------
        
        .. code-block:: python
        
            >>> from gmemcache import MemcachePoolConnection
            >>> from gsocketpool import Pool
            >>> pool = Pool(MemcachePoolConnection, dict(hosts=['127.0.0.1:11211']))
            >>> with pool.connection() as client:
            ...   client.is_connected()
            ...   client.set_multi({'key1': 'value1', 'key2': 'value2'})
            ...   client.get_multi(['key1', 'key2', 'key3'])
            True
            True
            {'key2': u'value2', 'key1': u'value1'}
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
