def set(self, key, value, expires=0):
        '''
        Set object with key.

        Args:
            key: cache key as str.
            value: object value.
            expires: cache time, default to 0 (using default expires time)

        >>> key = uuid.uuid4().hex
        >>> c = RedisClient('localhost')
        >>> c.set(key, u'Python\u4e2d\u6587')
        >>> c.get(key)
        u'Python\u4e2d\u6587'
        >>> c.set(key, ['A', 'B', 'C'])
        >>> c.get(key)
        ['A', 'B', 'C']
        >>> c.set(key, 'Expires after 1 sec', 1)
        >>> c.get(key)
        'Expires after 1 sec'
        >>> time.sleep(2)
        >>> c.get(key, 'Not Exist')
        'Not Exist'
        '''
        logging.debug(key % 'set cache: key = %s')
        self._set(key, value, expires, use_pickle=True)
dataset/ETHPy150Open michaelliao/transwarp/transwarp/cache.py/RedisClient.set/swapped operands of `%`