@staticmethod<EOL><INDENT>def default_memcache_timeout_policy(key):<DEDENT>
timeout = None<EOL>if key is not None and isinstance(key, model.Key):<EOL><INDENT>modelclass = model.Model._kind_map.get(key.kind())<EOL>if modelclass is not None:<EOL><INDENT>policy = getattr(modelclass, '<STR_LIT>', None)<EOL>if policy is not None:<EOL><INDENT>if isinstance(policy, int):<EOL><INDENT>timeout = policy<EOL><DEDENT>else:<EOL><INDENT>timeout = policy(key)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return timeout<EOL>
Default memcache timeout policy.

        This defers to _memcache_timeout on the Model class.

        Args:
          key: Key instance.

        Returns:
          Memcache timeout to use (integer), or None.