Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(38)  |  Call(37)  |  Derive(1)  |  Import(0)
This is intended to be a client class which implement standard cache interface that common libs do.

src/m/i/minecloud-ami-HEAD/modules/msm_backup_restore/files/bin/msm-manage-pre-shutdown-backup.py   minecloud-ami(Download)
 
    if all([servers, username, password]):
        client = bmemcached.Client((servers, ), username, password)
    return client
 

src/h/n/HNify-HEAD/app.py   HNify(Download)
timeout = 600
 
mc = memcache.Client(os.environ.get('MEMCACHEDCLOUD_SERVERS').split(','),
                       os.environ.get('MEMCACHEDCLOUD_USERNAME'),
                       os.environ.get('MEMCACHEDCLOUD_PASSWORD'))

src/q/u/queue-front-0.7.2/queue_front/backends/memcached.py   queue-front(Download)
    def __init__(self, name):
        self._connection = memcache.Client(CONN.split(';'))
        self.backend = 'memcached'
        self.name = name
 
        stats.
    '''
    conn = memcache.Client(CONN.split(';'))
    queue_list = []
    queue_re = re.compile(r'queue\_(.*?)\_total_items')

src/p/y/python-binary-memcached-HEAD/threading-processing-safe.py   python-binary-memcached(Download)
import bmemcached
 
c = bmemcached.Client('127.0.0.1:11211')
 
 

src/p/y/python-async-memcached-server-HEAD/benchmark.py   python-async-memcached-server(Download)
import datetime
start = datetime.datetime.now()
import bmemcached
 
client = bmemcached.Client('127.0.0.1')

src/p/y/python-binary-memcached-0.24/test/test_server_parsing.py   python-binary-memcached(Download)
    def testAcceptStringServer(self):
        client = bmemcached.Client('127.0.0.1:11211')
        self.assertEqual(len(list(client.servers)), 1)
 
    def testAcceptIterableServer(self):
        client = bmemcached.Client(['127.0.0.1:11211', '127.0.0.1:11211'])
    def testAcceptUnixSocket(self):
        client = bmemcached.Client('/tmp/memcached.sock')
        self.assertEqual(len(list(client.servers)), 1)
 
    @mock.patch.object(bmemcached.client.Protocol, '_get_response')
        """
        mocked_response.return_value = (0, 0, 0, 0, 0, 0, 0, 0, 0, ['PLAIN'])
        client = bmemcached.Client('127.0.0.1:11211', username='user',
                                   password='password')
        server = list(client.servers)[0]
    def testNoCredentialsNoAuth(self, mocked_response):
        mocked_response.return_value = (0, 0, 0, 0, 0, 0x01, 0, 0, 0, ['PLAIN'])
        client = bmemcached.Client('127.0.0.1:11211')
        server = list(client.servers)[0]
 

src/p/y/python-binary-memcached-HEAD/test/test_server_parsing.py   python-binary-memcached(Download)
    def testAcceptStringServer(self):
        client = bmemcached.Client('127.0.0.1:11211')
        self.assertEqual(len(list(client.servers)), 1)
 
    def testAcceptIterableServer(self):
        client = bmemcached.Client(['127.0.0.1:11211', '127.0.0.1:11211'])
    def testAcceptUnixSocket(self):
        client = bmemcached.Client('/tmp/memcached.sock')
        self.assertEqual(len(list(client.servers)), 1)
 
    @mock.patch.object(bmemcached.client.Protocol, '_get_response')
        """
        mocked_response.return_value = (0, 0, 0, 0, 0, 0, 0, 0, 0, ['PLAIN'])
        client = bmemcached.Client('127.0.0.1:11211', username='user',
                                   password='password')
        server = list(client.servers)[0]
    def testNoCredentialsNoAuth(self, mocked_response):
        mocked_response.return_value = (0, 0, 0, 0, 0, 0x01, 0, 0, 0, ['PLAIN'])
        client = bmemcached.Client('127.0.0.1:11211')
        server = list(client.servers)[0]
 

src/d/o/dogpile.cache-0.5.3/dogpile/cache/backends/memcached.py   dogpile.cache(Download)
        class RepairBMemcachedAPI(bmemcached.Client):
            """Repairs BMemcached's non-standard method
            signatures, which was fixed in BMemcached
            ef206ed4473fec3b639e.
 

src/f/l/Flask-Fragment-HEAD/flask_fragment/utilites.py   Flask-Fragment(Download)
    if config.get('FRAGMENT_CACHING'):
        import bmemcached
        return bmemcached.Client(**{
            'servers':  config.get('FRAGMENT_MEMCACHED_SERVERS',
                        config.get('CACHE_MEMCACHED_SERVERS', ('127.0.0.1:11211',))),

src/p/y/python-binary-memcached-0.24/test/test_compression.py   python-binary-memcached(Download)
    def setUp(self):
        self.server = '127.0.0.1:11211'
        self.client = bmemcached.Client(self.server, 'user', 'password')
        self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2)
        self.data = b'this is test data. ' * 32

  1 | 2  Next