parameters: (self)
docstring: Try to push the node into a cache
docstring_summary: Try to push the node into a cache
docstring_tokens: Try to push the node into a cache
function: def push_to_cache(self):
          """Try to push the node into a cache
          """
          # This should get called before the Nodes' .built() method is
          # called, which would clear the build signature if the file has
          # a source scanner.
          #
          # We have to clear the local memoized values *before* we push
          # the node to cache so that the memoization of the self.exists()
          # return value doesn't interfere.
          if self.nocache:
              return
          self.clear_memoized_values()
          if self.exists():
              self.get_build_env().get_CacheDir().push(self)
function_tokens: def push_to_cache ( self ) : # This should get called before the Nodes' .built() method is # called, which would clear the build signature if the file has # a source scanner. # # We have to clear the local memoized values *before* we push # the node to cache so that the memoization of the self.exists() # return value doesn't interfere. if self . nocache : return self . clear_memoized_values ( ) if self . exists ( ) : self . get_build_env ( ) . get_CacheDir ( ) . push ( self )