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.
ATGCache
is 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.ATGCacheManagedDocument
is the shared core data storage document, a wrapper around the Apple SQL data storage.You can instantiate the
ATGCoreDataCache
class when you want aCoreData
backed cache. It implements theATGCache
protocol.You can instantiate the
ATGMemoryCache
class when you want an in-memory cache. It implements theATGCache
protocol.ATGRepositoryCoreDataCache
is a subclass ofATGCoreDataCache
that you can use when you are caching repository items. It can help you manage items that have arepositoryId
property.