def METHOD_NAME(expire):
    # get version online, but first from cache
    latest_version = lib.cache.get('rocketchat-version')
    if latest_version:
        return (True, latest_version)
    # nothing found in cache, get the latest version from github
    success, latest_version = lib.url.get_latest_version_from_github('RocketChat', 'Rocket.Chat')
    if not success:
        return (success, latest_version)
    lib.cache.set('rocketchat-version', latest_version, lib.time.now() + expire)
    return (True, latest_version)