def get ( self , key ) : value = redis_conn . get ( key ) if value is not None : value = pickle . loads ( value ) return value
python redis get return none
Get a value from the cache .
def get(self, key):
        """Get a value from the cache.

        Returns None if the key is not in the cache.
        """
        value = redis_conn.get(key)

        if value is not None:
            value = pickle.loads(value)

        return value