'Set a bunch of values in the cache at once from a dict of key/value
pairs.  For certain backends (memcached), this is much more efficient
than calling set() multiple times.
If timeout is given, that timeout will be used for the key; otherwise
the default cache timeout will be used.'

def set_many(self, data, timeout=DEFAULT_TIMEOUT, version=None):

    for (key, value) in data.items():
        self.set(key, value, timeout=timeout, version=version)
