@memoize('gold-goal', stale=True)
def gold_goal_on(date):
 goal = GoldRevenueGoalByDate.get(date)
 if (not goal):
  return 0
 return float(goal)

@ memoize ( 'gold-goal' , stale = True ) def gold_goal_on ( date ) : goal = GoldRevenueGoalByDate . get ( date ) if ( not goal ) : return 0 return float ( goal )
returns the gold revenue goal for a given date .