blob: 25f0eba0abd7242e56c583d5caee43e472aaa3a4 (
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.m
// 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 "HJMOPolicy.h"
@implementation HJMOPolicy
@synthesize urlTimeoutTime;
@synthesize readsUpdateFileDate;
//@synthesize loadToFile;
//@synthesize cacheInMemory;
//@synthesize asyncStartLoad;
//@synthesize asyncIsReadyIfCached;
+(HJMOPolicy*) smallImgFastScrollLRUCachePolicy {
//this is the default policy settings.
HJMOPolicy* policy = [[[HJMOPolicy alloc] init] autorelease];
return policy;
}
/** default policy is good for small images, fast scrolling, async updates, LRU file cache */
-(HJMOPolicy*)init {
[super init];
self.urlTimeoutTime = 30;
self.readsUpdateFileDate = YES;
//self.loadToFile = YES;
//self.cacheInMemory = YES;
//self.asyncStartLoad = YES;
//self.asyncIsReadyIfCached = YES;
return self;
}
@end
|