':return: True if the value is in keys'

def __contains__(self, key):

    query = ('SELECT    count(*)    FROM    %s    WHERE    key=?    limit    1' % self.table_name)
    r = self.db.select_one(query, (cpickle_dumps(key),))
    return bool(r[0])
