lericson / pylibmc

A Python wrapper around the libmemcached interface from TangentOrg.
http://sendapatch.se/projects/pylibmc/
BSD 3-Clause "New" or "Revised" License
478 stars 136 forks source link

Iterator over multi get #262

Open lericson opened 4 years ago

lericson commented 4 years ago

An idea left as a comment in the code is to provide an iterable interface for multi getting, for example

mc = …

for key, val in mc.iter_multi_get(set_of_keys):
    use(key, val)

However, it is not clear if this would be a good idea as it may incur a very large overhead, switching between Python and C.