Esempio n. 1
0
    def push(cls, **kwargs):
        keys = kwargs.get('keys', [])

        valid = cls.validate_keys(keys=keys)
        if valid:
            for key in keys:
                redis.rpush(cls.not_added_key, key)
            return True
        return False
Esempio n. 2
0
 def push(cls, key):
     redis.rpush(cls.not_added_key, key)