The following ATGMobileCommon classes are used by the various Managers that need caching. For example, ATGProductManager uses ATGRepositoryCoreDataCache because it is caching products and skus which are repository items and ATGProfileManager uses ATGMemoryCache for its order caching.
ATGCacheis the protocol that each ATG caches implement, enabling you to get the cache to follow the protocol without having to know if it is in core data or in-memory backed.ATGCacheManagedDocumentis the shared core data storage document, a wrapper around the Apple SQL data storage.You can instantiate the
ATGCoreDataCacheclass when you want aCoreDatabacked cache. It implements theATGCacheprotocol.You can instantiate the
ATGMemoryCacheclass when you want an in-memory cache. It implements theATGCacheprotocol.ATGRepositoryCoreDataCacheis a subclass ofATGCoreDataCachethat you can use when you are caching repository items. It can help you manage items that have arepositoryIdproperty.

