Did I find the right examples for you? yes no

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

>>> notset_keys = mc.set_multi({'key1' : 'val1', 'key2' : 'val2'})
>>> mc.get_multi(['key1', 'key2']) == {'key1' : 'val1', 'key2' : 'val2'}
1
>>> mc.delete_multi(['key1', 'key2'])
1
>>> mc.get_multi(['key1', 'key2']) == {}
1
(more...)

src/m/e/memcache-debug-panel-HEAD/test/__init__.py   memcache-debug-panel(Download)
                'simple delete, non-existent')
        # delete_multi (pylibmc implements this as foreach keys delete)
        self.assertTrue(client.delete_multi(multi_keys), 'delete_multi')
        self.assertLastCall('delete_multi', multi_keys, 'delete_multi')
        # flush again, this time make sure it works

src/c/a/Cache-Debug-Toolbar-HEAD/test/__init__.py   Cache-Debug-Toolbar(Download)
                'simple delete, non-existent')
        # delete_multi (pylibmc implements this as foreach keys delete)
        self.assertTrue(client.delete_multi(multi_keys), 'delete_multi')
        self.assertLastCall('delete_multi', multi_keys, 'delete_multi')
        # flush again, this time make sure it works