Skip to content

Commit ddd85de

Browse files
committed
EGOCache 2.0, see more information here: http://egoco.de/post/34853895060/egocache-2-0
1 parent 1f84381 commit ddd85de

File tree

3 files changed

+223
-142
lines changed

3 files changed

+223
-142
lines changed

EGOCache.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// enormego
44
//
55
// Created by Shaun Harrison on 7/4/09.
6-
// Copyright (c) 2009-2010 enormego
6+
// Copyright (c) 2009-2012 enormego
77
//
88
// Permission is hereby granted, free of charge, to any person obtaining a copy
99
// of this software and associated documentation files (the "Software"), to deal
@@ -27,14 +27,15 @@
2727
#import <Foundation/Foundation.h>
2828

2929

30-
@interface EGOCache : NSObject {
31-
@private
32-
NSMutableDictionary* cacheDictionary;
33-
NSOperationQueue* diskOperationQueue;
34-
NSTimeInterval defaultTimeoutInterval;
35-
}
30+
@interface EGOCache : NSObject
3631

37-
+ (EGOCache*)currentCache;
32+
+ (instancetype)currentCache __deprecated; // Renamed to globalCache
33+
34+
// Global cache for easy use
35+
+ (instancetype)globalCache;
36+
37+
// Opitionally create a different EGOCache instance with it's own cache directory
38+
- (id)initWithCacheDirectory:(NSString*)cacheDirectory;
3839

3940
- (void)clearCache;
4041
- (void)removeCacheForKey:(NSString*)key;

0 commit comments

Comments
 (0)