From 9d52266f823daf5cb83e3eebe1b9f57594bc9d4a Mon Sep 17 00:00:00 2001 From: matt handler Date: Wed, 20 Apr 2011 14:39:20 -0400 Subject: first commit --- Classes/HJMOPolicy.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 Classes/HJMOPolicy.h (limited to 'Classes/HJMOPolicy.h') diff --git a/Classes/HJMOPolicy.h b/Classes/HJMOPolicy.h new file mode 100755 index 0000000..11fdbab --- /dev/null +++ b/Classes/HJMOPolicy.h @@ -0,0 +1,45 @@ +// +// HJManagedObjPolicy.h +// hjlib +// +// Copyright Hunter and Johnson 2009, 2010, 2011 +// HJCache may be used freely in any iOS or Mac application free or commercial. +// May be redistributed as source code only if all the original files are included. +// See http://www.markj.net/hjcache-iphone-image-cache/ + +#import + +/* + The policy has some settings for customizing how the object manger works. + Its optional, as the object manager has a default policy + */ + +@interface HJMOPolicy : NSObject { + + NSTimeInterval urlTimeoutTime; + + //if YES, then when accessing a managed object that has a cahce file, the date on that + //cache file is updated, so that the file cache can trim its size by deleting only + //objects that have not been accessed recently + BOOL readsUpdateFileDate; + + // TODO: make object manager use these parts of the policy + //BOOL loadToFile; + //BOOL cacheInMemory; + //BOOL asyncStartLoad; + //BOOL asyncIsReadyIfCached; +} + +@property NSTimeInterval urlTimeoutTime; +@property BOOL readsUpdateFileDate; + + +//@property BOOL loadToFile; +//@property BOOL cacheInMemory; +//@property BOOL asyncStartLoad; +//@property BOOL asyncIsReadyIfCached; + ++(HJMOPolicy*) smallImgFastScrollLRUCachePolicy; + + +@end -- cgit v1.2.3