def METHOD_NAME(key, value, time=86400):
  """
  Redis SET sets the str/binary key, value pair, https://redis.io/commands/set/; if
  ``key`` already holds a value, it is overwritten.
  ``time`` sets the expire time for this key, in seconds.
  """
  if redis_client is None:
    return
  cache_key = add_gae_prefix(key)
  if time:
    redis_client.METHOD_NAME(cache_key, pickle.dumps(value), ex=time)
  else:
    redis_client.METHOD_NAME(cache_key, pickle.dumps(value))