Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/u/r/url_shortener-0.5.20/url_shortener/shorten.py   url_shortener(Download)
 
        try:
            self.redis.set(config.REDIS_PREFIX + code, url)
            return {'success': True,
                    'url': url,
        """
        try:
            return self.redis.get(config.REDIS_PREFIX + code)
        except:
            return None