14759e1065e307c7760299670da30f64ffdbf783,src/python/pants/engine/storage.py,Cache,put,#Cache#Any#Any#,346

Before Change


  def put(self, step_request, step_result):
    Save the StepResult for a given StepResult.
    request_key = self._storage.put(self._keyable_fields(step_request))
    result_key = self._storage.put(step_result)
    return self._storage.add_mapping(from_key=request_key, to_key=result_key)

  def get_stats(self):
    return self._cache_stats

After Change


    Save the State for a given Runnable and return a key for the result.
    result_key = self._storage.put(result)
    self.put_for_key(request_key, result_key)
    return result_key

  def put_for_key(self, request_key, result_key):
    Save the State for a given Runnable and return a key for the result.
    self._storage.add_mapping(from_key=request_key, to_key=result_key)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 14759e1065e307c7760299670da30f64ffdbf783
Time: 2016-08-27
Author: stuhood@gmail.com
File Name: src/python/pants/engine/storage.py
Class Name: Cache
Method Name: put


Project Name: pantsbuild/pants
Commit Name: 7a781ca9f161f3f56f39a87503f461e91d712ab3
Time: 2016-03-08
Author: stuhood@gmail.com
File Name: tests/python/pants_test/engine/exp/test_graph.py
Class Name: GraphTestBase
Method Name: create


Project Name: pantsbuild/pants
Commit Name: a56f11bc822f45997c9af154abb1ce512f93888e
Time: 2016-03-09
Author: kwilson@twopensource.com
File Name: src/python/pants/engine/exp/examples/planners.py
Class Name:
Method Name: setup_json_scheduler