anchor.diff:              {error, E2}
       end.
   
  -free_memory() ->
  -    try
  -        % Following code will be used when clearing memory algorithm will change
  -        % TODO VFS-2428 - do not use foreach during clearing
  -        ok
  -%%        ok = plugins:apply(node_manager_plugin, clear_memory, [false]),
  -%%        ClearingOrder = [{false, globally_cached}, {false, locally_cached}],
  -%%        lists:foreach(fun
  -%%            ({Aggressive, StoreType}) ->
  -%%                caches_controller:clear_cache(Aggressive, StoreType)
  -%%        end, ClearingOrder)
  -    catch
  -        E1:E2 ->
  -            ?error_stacktrace("Error during caches cleaning ~p:~p", [E1, E2]),
  -            {error, E2}
  -    end.
  -
   %%--------------------------------------------------------------------
   %% @private
   %% @doc
  
positive.code: %% Starts memory cleaning.
  %% @end
  %%--------------------------------------------------------------------
  -spec start_memory_cleaning(LastCleaningPid :: pid(), MemUsage :: float(), State :: #state{}) -> #state{}.
  start_memory_cleaning(LastCleaningPid, MemUsage, State) ->
      case LastCleaningPid of
          undefined ->
  
negative.code:             {ok, CleaningPeriod} = application:get_env(?CLUSTER_WORKER_APP_NAME, clear_cache_max_period_ms),
              case timer:now_diff(Now, Last) >= 1000000 * CleaningPeriod of
                  true ->
                      start_memory_cleaning(LastCleaningPid, undefined, State);
                  _ ->
                      State
              end
  