def __contains__(self, key, path="%"):
        q = "select * from `rate` where key=? and path like ?;"
        return self.execute(q, (key, path), first=True, commit=False) is not None
Returns True if the given key exists (for the given path).
dataset/ETHPy150Open clips/pattern/pattern/server/__init__.py/RateLimit.__contains__