NetmeraClient Class Reference
| Inherits from | NSObject |
| Declared in | NetmeraClient.h NetmeraClient.m |
Tasks
-
cacheTypeTypes of the Cache to use while searching.
property -
+ setCacheType:Set cache method of netmera
-
+ deleteCacheResultsDeletes everything from the cache
-
+ initWithApiKey:Authenticates user and application. It is recommended to call this method at the beginning of the program.
Properties
cacheType
Types of the Cache to use while searching.
@property (nonatomic) enum CacheType cacheTypeDiscussion
Types of the Cache to use while searching.
Warning: enum CacheType options.
DEFAULT_NO_CACHE, Queries does not add and retrieve results to cache.
FROM_CACHE, Queries retrieve results from the cache.
FROM_NETWORK, Queries retrieve results from the network and add results into the cache.
FIRST_CACHE_THEN_NETWORK, Queries first tries to get results from cache, if it cannot find then tries to get from network.
FIRST_NETWORK_THEN_CACHE, Queries first tries to get results from network, if it cannot find then tries to get from cache.
Declared In
NetmeraClient.hClass Methods
deleteCacheResults
Deletes everything from the cache
+ (void)deleteCacheResultsDiscussion
Deletes everything from the cache
Declared In
NetmeraClient.hinitWithApiKey:
Authenticates user and application. It is recommended to call this method at the beginning of the program.
+ (void)initWithApiKey:(NSString *)apiKeyParameters
- apiKey
key that given from Netmera account of your project
Discussion
Authenticates user and application. It is recommended to call this method at the beginning of the program.
Declared In
NetmeraClient.hsetCacheType:
Set cache method of netmera
+ (void)setCacheType:(enum CacheType)cacheTypeParameters
- cacheType
Type of the cache method
Discussion
Set cache method of netmera
Warning: enum CacheType options.
DEFAULT_NO_CACHE, Queries does not add and retrieve results to cache.
FROM_CACHE, Queries retrieve results from the cache.
FROM_NETWORK, Queries retrieve results from the network and add results into the cache.
FIRST_CACHE_THEN_NETWORK, Queries first tries to get results from cache, if it cannot find then tries to get from network.
FIRST_NETWORK_THEN_CACHE, Queries first tries to get results from network, if it cannot find then tries to get from cache.
Declared In
NetmeraClient.h