Tuya iOS Smart Life App SDK 5.15.0
ThingSmartCoreCache Class Reference

Quick Cache Any Object. More...

#import <ThingSmartCoreCache.h>

Inheritance diagram for ThingSmartCoreCache:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(NSArray< ObjectType > *) - allObjects
 
(NSArray< KeyType > *) - allKeys
 
(void) - setObject:forKey:
 
(nullable ObjectType- objectForKey:
 
(BOOL) - containsObjectForKey:
 
(void) - removeObjectForKey:
 
(void) - removeAllObjects
 Remove all cached objects. More...
 
(NSUInteger) - count
 
(void) - cacheObject:
 Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(instancetype) - NS_UNAVAILABLE
 
(NSArray< ObjectType > *) - allObjects
 
(NSArray< KeyType > *) - allKeys
 
(void) - setObject:forKey:
 
(nullable ObjectType- objectForKey:
 
(BOOL) - containsObjectForKey:
 
(void) - removeObjectForKey:
 
(void) - removeAllObjects
 Remove all cached objects. More...
 
(NSUInteger) - count
 
(void) - cacheObject:
 Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(instancetype) - NS_UNAVAILABLE
 
(NSArray< ObjectType > *) - allObjects
 
(NSArray< KeyType > *) - allKeys
 
(void) - setObject:forKey:
 
(nullable ObjectType- objectForKey:
 
(BOOL) - containsObjectForKey:
 
(void) - removeObjectForKey:
 
(void) - removeAllObjects
 Remove all cached objects. More...
 
(NSUInteger) - count
 
(void) - cacheObject:
 Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(instancetype) - NS_UNAVAILABLE
 
(NSArray< ObjectType > *) - allObjects
 
(NSArray< KeyType > *) - allKeys
 
(void) - setObject:forKey:
 
(nullable ObjectType- objectForKey:
 
(BOOL) - containsObjectForKey:
 
(void) - removeObjectForKey:
 
(void) - removeAllObjects
 Remove all cached objects. More...
 
(NSUInteger) - count
 
(void) - cacheObject:
 Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) - removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 

Class Methods

(instancetype) + cacheWithName:
 
(instancetype) + NS_UNAVAILABLE
 
(void) + cacheObject:
 Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(nullable ObjectType+ objectForKey:withClass:
 
(BOOL) + containsObjectForKey:withClass:
 
(void) + removeObjectForKey:withClass:
 
(instancetype) + cacheWithName:
 
(instancetype) + NS_UNAVAILABLE
 
(void) + cacheObject:
 Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(nullable ObjectType+ objectForKey:withClass:
 
(BOOL) + containsObjectForKey:withClass:
 
(void) + removeObjectForKey:withClass:
 
(instancetype) + cacheWithName:
 
(instancetype) + NS_UNAVAILABLE
 
(void) + cacheObject:
 Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(nullable ObjectType+ objectForKey:withClass:
 
(BOOL) + containsObjectForKey:withClass:
 
(void) + removeObjectForKey:withClass:
 
(instancetype) + cacheWithName:
 
(instancetype) + NS_UNAVAILABLE
 
(void) + cacheObject:
 Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + cacheObjects:
 Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(void) + removeObject:
 Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time. More...
 
(nullable ObjectType+ objectForKey:withClass:
 
(BOOL) + containsObjectForKey:withClass:
 
(void) + removeObjectForKey:withClass:
 

Protected Attributes

__covariant ObjectType: NSObject@property (nullable
 
__covariant copy
 
__covariant readonly NSString * name
 

Detailed Description

Quick Cache Any Object.

Definition at line 13 of file ThingSmartCoreCache.h.

Method Documentation

◆ allKeys [1/4]

- (NSArray< KeyType > *) allKeys

◆ allKeys [2/4]

- (NSArray< KeyType > *) allKeys

◆ allKeys [3/4]

- (NSArray< KeyType > *) allKeys

◆ allKeys [4/4]

- (NSArray< KeyType > *) allKeys

◆ allObjects [1/4]

- (NSArray< ObjectType > *) allObjects

◆ allObjects [2/4]

- (NSArray< ObjectType > *) allObjects

◆ allObjects [3/4]

- (NSArray< ObjectType > *) allObjects

◆ allObjects [4/4]

- (NSArray< ObjectType > *) allObjects

◆ cacheObject: [1/8]

+ (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [2/8]

- (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [3/8]

+ (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [4/8]

- (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [5/8]

- (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [6/8]

+ (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [7/8]

+ (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the + (nonnull NSString *)cacheName and ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObject: [8/8]

- (void) cacheObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Cache a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [1/8]

+ (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [2/8]

- (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [3/8]

+ (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [4/8]

- (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [5/8]

- (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [6/8]

+ (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [7/8]

+ (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheObjects: [8/8]

- (void) cacheObjects: (NSArray< ObjectType< ThingSmartCoreCacheProtocol > > *)  objects

Cache a set of objects, the objects must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ cacheWithName: [1/4]

+ (instancetype) cacheWithName: (NSString *)  name

◆ cacheWithName: [2/4]

+ (instancetype) cacheWithName: (NSString *)  name

◆ cacheWithName: [3/4]

+ (instancetype) cacheWithName: (NSString *)  name

◆ cacheWithName: [4/4]

+ (instancetype) cacheWithName: (NSString *)  name

◆ containsObjectForKey: [1/4]

- (BOOL) containsObjectForKey: (KeyType)  key

◆ containsObjectForKey: [2/4]

- (BOOL) containsObjectForKey: (KeyType)  key

◆ containsObjectForKey: [3/4]

- (BOOL) containsObjectForKey: (KeyType)  key

◆ containsObjectForKey: [4/4]

- (BOOL) containsObjectForKey: (KeyType)  key

◆ containsObjectForKey:withClass: [1/4]

+ (BOOL) containsObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ containsObjectForKey:withClass: [2/4]

+ (BOOL) containsObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ containsObjectForKey:withClass: [3/4]

+ (BOOL) containsObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ containsObjectForKey:withClass: [4/4]

+ (BOOL) containsObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ count [1/4]

- (NSUInteger) count

◆ count [2/4]

- (NSUInteger) count

◆ count [3/4]

- (NSUInteger) count

◆ count [4/4]

- (NSUInteger) count

◆ NS_UNAVAILABLE [1/8]

+ (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/8]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [3/8]

+ (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [4/8]

+ (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [5/8]

+ (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [6/8]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [7/8]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [8/8]

- (instancetype) NS_UNAVAILABLE

◆ objectForKey: [1/4]

- (nullable ObjectType) objectForKey: (KeyType)  key

◆ objectForKey: [2/4]

- (nullable ObjectType) objectForKey: (KeyType)  key

◆ objectForKey: [3/4]

- (nullable ObjectType) objectForKey: (KeyType)  key

◆ objectForKey: [4/4]

- (nullable ObjectType) objectForKey: (KeyType)  key

◆ objectForKey:withClass: [1/4]

+ (nullable ObjectType) objectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ objectForKey:withClass: [2/4]

+ (nullable ObjectType) objectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ objectForKey:withClass: [3/4]

+ (nullable ObjectType) objectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ objectForKey:withClass: [4/4]

+ (nullable ObjectType) objectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ removeAllObjects [1/4]

- (void) removeAllObjects

Remove all cached objects.

◆ removeAllObjects [2/4]

- (void) removeAllObjects

Remove all cached objects.

◆ removeAllObjects [3/4]

- (void) removeAllObjects

Remove all cached objects.

◆ removeAllObjects [4/4]

- (void) removeAllObjects

Remove all cached objects.

◆ removeObject: [1/8]

- (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [2/8]

+ (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [3/8]

- (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [4/8]

+ (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [5/8]

- (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [6/8]

- (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [7/8]

+ (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObject: [8/8]

+ (void) removeObject: (ObjectType< ThingSmartCoreCacheProtocol >)  object

Remove a object, the object must implement the ThingSmartCoreCacheProtocol method at the first time.

◆ removeObjectForKey: [1/4]

- (void) removeObjectForKey: (KeyType)  key

◆ removeObjectForKey: [2/4]

- (void) removeObjectForKey: (KeyType)  key

◆ removeObjectForKey: [3/4]

- (void) removeObjectForKey: (KeyType)  key

◆ removeObjectForKey: [4/4]

- (void) removeObjectForKey: (KeyType)  key

◆ removeObjectForKey:withClass: [1/4]

+ (void) removeObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ removeObjectForKey:withClass: [2/4]

+ (void) removeObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ removeObjectForKey:withClass: [3/4]

+ (void) removeObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ removeObjectForKey:withClass: [4/4]

+ (void) removeObjectForKey: (KeyType)  key
withClass: (Class< ThingSmartCoreCacheProtocol >)  aClass 

◆ setObject:forKey: [1/4]

- (void) setObject: (ObjectType object
forKey: (KeyType)  key 

◆ setObject:forKey: [2/4]

- (void) setObject: (ObjectType object
forKey: (KeyType)  key 

◆ setObject:forKey: [3/4]

- (void) setObject: (ObjectType object
forKey: (KeyType)  key 

◆ setObject:forKey: [4/4]

- (void) setObject: (ObjectType object
forKey: (KeyType)  key 

Member Data Documentation

◆ copy

- (__covariant) copy
protected

Definition at line 16 of file ThingSmartCoreCache.h.

◆ name

- (__covariant readonly NSString *) name
protected

Definition at line 16 of file ThingSmartCoreCache.h.

◆ ObjectType

- (__covariant) ObjectType
protected

Definition at line 13 of file ThingSmartCoreCache.h.


The documentation for this class was generated from the following files: