blob: 11fdbabc2e64a5225b8f00d4169804054f2833a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 <Foundation/Foundation.h>
/*
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
|