Skip to content

Commit

Permalink
EGOCache 2.0, see more information here: http://egoco.de/post/3485389…
Browse files Browse the repository at this point in the history
  • Loading branch information
shnhrrsn committed Nov 2, 2012
1 parent 1f84381 commit ddd85de
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 142 deletions.
17 changes: 9 additions & 8 deletions EGOCache.h
Expand Up @@ -3,7 +3,7 @@
// enormego
//
// Created by Shaun Harrison on 7/4/09.
// Copyright (c) 2009-2010 enormego
// Copyright (c) 2009-2012 enormego
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand All @@ -27,14 +27,15 @@
#import <Foundation/Foundation.h>


@interface EGOCache : NSObject {
@private
NSMutableDictionary* cacheDictionary;
NSOperationQueue* diskOperationQueue;
NSTimeInterval defaultTimeoutInterval;
}
@interface EGOCache : NSObject

+ (EGOCache*)currentCache;
+ (instancetype)currentCache __deprecated; // Renamed to globalCache

// Global cache for easy use
+ (instancetype)globalCache;

// Opitionally create a different EGOCache instance with it's own cache directory
- (id)initWithCacheDirectory:(NSString*)cacheDirectory;

- (void)clearCache;
- (void)removeCacheForKey:(NSString*)key;
Expand Down

0 comments on commit ddd85de

Please sign in to comment.