addProvider and getProvider for memory store