Implemented a map to store the elements in the AbstractCache, and Implements the cache add functions in DeviceCache and RequestCache