base InMamory implementation