def METHOD_NAME(cls, key, value, duration=3600):
    """Store/overwite a value in the cache with 'key' and an optional duration (seconds)"""
    try:
        expires = time.time() + duration
    except TypeError:
        raise TypeError("Duration must be numeric")
    cls._cache_[key] = (value, expires)
    return cls.get(key)