Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Retrieves multiple keys from the memcache doing just one query.

>>> success = mc.set("foo", "bar")
>>> success = mc.set("baz", 42)
>>> mc.get_multi(["foo", "baz", "foobar"]) == {"foo": "bar", "baz": 42}
1
>>> mc.set_multi({'k1' : 1, 'k2' : 2}, key_prefix='pfx_') == []
1

This looks up keys 'pfx_k1', 'pfx_k2', ... . Returned dict will just have unprefixed keys 'k1', 'k2'.(more...)

src/m/e/memcache-debug-panel-HEAD/test/__init__.py   memcache-debug-panel(Download)
        self.assertLastCall('set_multi', multi_keys, 'set_multi')
        # get_multi
        self.assertEqual(client.get_multi(multi_keys), multi, 'get_multi')
        self.assertLastCall('get_multi', multi_keys, 'get_multi')
        # add

src/c/a/Cache-Debug-Toolbar-HEAD/test/__init__.py   Cache-Debug-Toolbar(Download)
        self.assertLastCall('set_multi', multi_keys, 'set_multi')
        # get_multi
        self.assertEqual(client.get_multi(multi_keys), multi, 'get_multi')
        self.assertLastCall('get_multi', multi_keys, 'get_multi')
        # add