def cache_on_disk():
 t = cache.disk('time', (lambda : time.ctime()), time_expire=5)
 return dict(time=t, link=A('click to reload', _href=URL(r=request)))

def cache_on_disk ( ) : t = cache . disk ( 'time' , ( lambda : time . ctime ( ) ) , time_expire = 5 ) return dict ( time = t , link = A ( 'click to reload' , _href = URL ( r = request ) ) )
cache the output of the lambda function on disk .