anchor.diff:               ]).
   
   -record(state, {
  -          partition,
  -          node,
  +          %% The partition (i.e. vnode)
  +          partition :: pos_integer(),
  +          %% The node itself
  +          node :: node(),
  +          %% The table id
             tbl,
  -          ct,
  +          %% the number of chace points
  +          cache_size = 1 :: pos_integer(),
  +          %% PID of the io node
             io :: metric_io:io_handle(),
  -          now,
  +          %% the current time
  +          now :: pos_integer() ,
  +          %% Resolution cache
             resolutions = btrie:new(),
  +          %% TTL cache
             lifetimes  = btrie:new()
            }).
   
  
positive.code:     end.
  
  update_env(State) ->
      CT = application:get_env(metric_vnode, cache_points, 120),
      State#state{ct = CT}.
  
  
  %% Handling a get request overload
  
negative.code:                     ets:update_element(T, BM, [{3, Idx + Len}]);
                  %% We don't have a cache yet and our data is smaller then
                  %% the current cache limit
                  [] when Len < CacheSize ->
                      Array = k6_bytea:new(CacheSize * ?DATA_SIZE),
                      k6_bytea:set(Array, 0, Value),
                      Jitter = rand:uniform(CacheSize),
                      ets:insert(T, {BM, Time, Len, Time + Jitter, Array});
                  %% If we don't have a cache but our data is too big for the
                  %% cache we happiely write it directly
  