Discussion
This class provides trivial extensions to the
CWCacheManager superclass for CWIMAPFolder instances.
Superclass
CWCacheManager
Declared In
CWIMAPCacheManager.h
Methods
- -initWithPath:folder:
- -messageWithUID:
- -readAllMessages
- -readMessagesInRange:
- -removeMessageWithUID:
- -setUIDValidity:
- -UIDValidity
- -writeRecord:message:
- (id) initWithPath: (NSString *) thePath folder: (CWFolder *) theFolder;
- (CWIMAPMessage *) messageWithUID: (unsigned int) theUID;
Parameters
-
theUID The UID of the message to obtain from the cache.
Return Value
The instance, nil if not present in the receiver's cache.
Discussion
This method is used to obtain the CWIMAPMessage instance
from the receiver's cache.
- (void) readAllMessages;
- (void) readMessagesInRange: (NSRange) theRange;
- (void) removeMessageWithUID: (unsigned int) theUID;
Parameters
-
theUID The UID of the message to remove from the cache.
Discussion
This method is used to remove the associated
message from the cache based on the supplied UID.
- (void) setUIDValidity: (unsigned int) theUIDValidity;
Parameters
-
theUIDValidity The value to set.
Discussion
This method is used to set the UID validity value
of the receiver's cache.
- (unsigned int) UIDValidity;
Return Value
The UID validity.
Discussion
This method is used to obtain the UID validity
value of the receiver's cache. If it doesn't
match the UID validity of its associated
CWIMAPFolder instance, you should invalidate the cache.
- (void) writeRecord: (cache_record *) theRecord message: (id) theMessage;
Parameters
-
theRecord The record to write.
-
theMessage The message associated to the record theRecord.
Discussion
This method is used to write a cache record to disk.
Member Data
- _folder
- _table
- _UIDValidity
private
CWFolder *_folder;
private
NSMapTable *_table;
private
unsigned int _UIDValidity;
Last Updated: Wednesday, 13 April 2022