anchor.diff:                  [] ->
                       {Key, 0, 0, 0, {}};
                   [Tuple] ->
  -                    tuple_to_key(Tuple, false)
  +                    tuple_to_key(Tuple)
               end,
               {NewLength, PrunedOps} = prune_ops({Length, OpsDict}, CommitTime),
               true = ets:insert(SnapshotCache, {Key, PrunedSnapshots}),
  
positive.code:     end,
      {Key, Length, OpId, ListLen, Ops}.
  
  tuple_to_key_int(Next, Next, _Tuple, Acc) ->
      Acc;
  
  
negative.code:         [{1, Key}, {2, {0, ?OPS_THRESHOLD}}]
      ).
  
  -spec tuple_to_key(tuple()) -> {key(), integer(), non_neg_integer(), non_neg_integer(), tuple()}.
  tuple_to_key(Tuple) ->
      tuple_to_key(Tuple, false).
  
  %% This is an internal function used to convert the tuple stored in ets
  %% to a tuple and list usable by the materializer
  %% The second argument if true will convert the ops tuple to a list of ops
  