anchor.diff:      end.
   
   update_env(State) ->
  -    CT = application:get_env(metric_vnode, cache_points, 120),
  -    State#state{ct = CT}.
  +    CT = application:get_env(metric_vnode, cache_size, 120),
  +    State#state{cache_size = CT}.
   
   
   %% Handling a get request overload
  
positive.code:              ]).
  
  -record(state, {
            partition,
            node,
            tbl,
            ct,
            io :: metric_io:io_handle(),
            now,
            resolutions = btrie:new(),
            lifetimes  = btrie:new()
           }).
  
  
negative.code:                 %% then the cache time we flush the cache and start a new cache
                  %% with a new package
                  [{BM, Start, Size, _End, Array}]
                    when (Time + Len) >= _End, Len < CacheSize ->
                      Bin = k6_bytea:get(Array, 0, Size * ?DATA_SIZE),
                      k6_bytea:set(Array, 0, Value),
                      k6_bytea:set(Array, Len * ?DATA_SIZE,
                                   <<0:(?DATA_SIZE * 8 * (CacheSize - Len))>>),
                      ets:update_element(T, BM, [{2, Time}, {3, Len},
                                                 {4, Time + CacheSize}]),
                      metric_io:write(IO, Bucket, Metric, Start, Bin);
                  %% In the case the data is already longer then the cache we
                  %% flush the cache
  