﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6462	memcached cache.get_many() is not doing what the Docstring says	panni@…	nobody	"Cache.get_many()'s DOCSTRING states:
""""""
Fetch a bunch of keys from the cache. For certain backends (memcached,
pgsql) this can be *much* faster when fetching multiple values.

Returns a dict mapping each key in keys to its value. If the given
key is missing, it will be missing from the response dict.
""""""

Which basically isn't implemented, at least for memcached backend:

{{{
def get_many(self, keys):
  """"""
  Fetch a bunch of keys from the cache. For certain backends (memcached,
  pgsql) this can be *much* faster when fetching multiple values.

  Returns a dict mapping each key in keys to its value. If the given
  key is missing, it will be missing from the response dict.
  """"""
  d = {}
  for k in keys:
      val = self.get(k)
      if val is not None:
          d[k] = val
  return d
}}}

This simply uses cache.get() for retrieving objects from the (memcached) cache. The DOCSTRING simply is not true.

Cache.get_many((""a"", ""b"")) isn't faster than calling cache.get() twice.
"		closed	Core (Cache system)	dev		invalid	cache, memcached, get_many	dcramer@…	Unreviewed	0	0	0	0	0	0
