-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "EGOCache" | ||
s.version = "2.1.3" | ||
s.summary = "Fast Caching for Objective-C (iPhone & Mac Compatible)." | ||
s.description = "EGOCache is a simple, thread-safe key value cache store. It has native support for NSString, UI/NSImage, and NSData, but can store anything that implements <NSCoding>. All cached items expire after the timeout, which by default, is one day." | ||
s.version = "2.2.0" | ||
s.summary = "Fast Caching for Objective-C (Works with macOS, iOS, tvOS and watchOS)." | ||
s.description = "EGOCache is a simple, thread-safe key value cache store for macOS, iOS, tvOS and watchOS." | ||
s.homepage = "https://github.com/enormego/EGOCache" | ||
s.license = "MIT" | ||
s.author = "Enormego, Shaun Harrison" | ||
s.source = { :git => "https://github.com/enormego/EGOCache.git", :tag => "v" + s.version.to_s } | ||
s.author = "Shaun Harrison" | ||
s.social_media_url = "http://twitter.com/shnhrrsn" | ||
s.source = { :git => "https://github.com/enormego/EGOCache.git", :tag => s.version.to_s } | ||
s.requires_arc = true | ||
s.source_files = "*.{h,m}" | ||
s.source_files = "Sources/*.{h,m}" | ||
s.osx.deployment_target = "10.8" | ||
s.ios.deployment_target = "7.0" | ||
s.tvos.deployment_target = "9.0" | ||
s.watchos.deployment_target = "2.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# About EGOCache 2.x | ||
EGOCache is a simple, thread-safe key value cache store. It has native support for `NSString`, `UI/NSImage`, and `NSData`, but can store anything that implements `<NSCoding>`. All cached items expire after the timeout, which by default, is one day. | ||
# EGOCache | ||
EGOCache is a simple, thread-safe key value cache store for macOS, iOS, tvOS and watchOS. | ||
|
||
# Requirements | ||
It has native support for `NSString`, `UIImage`, `NSImage`, and `NSData`, but can store anything that implements `<NSCoding>`. All cached items expire after the timeout, which by default, is one day. | ||
|
||
* ARC | ||
* Blocks | ||
* iOS or OS X | ||
## Installation | ||
|
||
# Changes in 2.0 | ||
### Carthage | ||
|
||
The public interface in 2.0 is largely the same, with the exception of `[EGOCache currentCache]` being deprecated in favor of `[EGOCache globalCache]`. You can now create your own instances of EGOCache and tell it to store wherever, this can be good for dividing up caches in different sections of your app. | ||
``` | ||
github "enormego/EGOCache" ~> 2.2.0 | ||
``` | ||
|
||
Internally, EGOCache was largely rewritten to take advantage of libdispatch and is far more stable/performant when handling saves from multiple threads than it was in the past. | ||
### CocoaPods | ||
|
||
One other notable internal change for users upgrading from 1.0 to be aware of, is UIImage's are no longer stored via `UIImagePNGRepresentation`. They're stored now by archiving UIImage itself, which allows us to retain information such as image scale, orientation, and also store the image in it's native type, so JPEG's are no longer inflated to PNG sizes. If you were previously saving images via `setImage:forKey:`, but for some reason retrieving them via `dataForKey:`, you'll need to update your code to account for this. | ||
``` | ||
pod 'EGOCache', '~> 2.2.0' | ||
``` | ||
|
||
# Questions | ||
Feel free to contact [email protected] if you need any help with EGOCache. | ||
### Without a dependency manager | ||
|
||
# License | ||
Copyright (c) 2015 enormego | ||
Drag EGOCache.h and EGOCache.m into your project. | ||
|
||
## License | ||
Copyright (c) 2017 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 | ||
|