anchor.diff:    {stop, Reason :: term()} | ignore).
   init([]) ->
     em_logger:info("Init positions manager"),
  -  Cache = ets:new(positions, [set, private, {keypos, 2}]),
  +  Cache = ets:new(positions, [set, private, {keypos, 8}]),
     {ok, Items} = em_storage:get_devices(),
     lists:foreach(fun(#device{id = DeviceId, positionId = PositionId}) ->
       case em_storage:get_last_position(PositionId, DeviceId) of
  
positive.code: 
  %% API
  -export([start_link/0]).
  
  %% gen_server callbacks
  -export([init/1,
  
negative.code: %%%===================================================================
  %%% API
  %%%===================================================================
  -spec(get() -> {ok, [Rec :: #position{}]} | {error, string()}).
  get() ->
    gen_server:call(?SERVER, {get}).
  
  -spec(get(PositionId :: integer(), DeviceId :: integer()) -> {ok, Rec :: #position{}} | {error, string()}).
  get(PositionId, DeviceId) ->
    gen_server:call(?SERVER, {get, PositionId, DeviceId}).
  
  -spec(create(Position :: #position{}) -> {ok, #position{}} | {error, string()}).
  create(Position) ->
    gen_server:call(?SERVER, {create, Position}).
  %%--------------------------------------------------------------------
  %% @doc
  %% Starts the server
  