Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shnhrrsn committed Oct 14, 2017
1 parent a54cfd9 commit 07b8038
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
17 changes: 11 additions & 6 deletions EGOCache.podspec
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
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.1.3</string>
<string>2.2.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
31 changes: 17 additions & 14 deletions README.markdown
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
Expand Down

0 comments on commit 07b8038

Please sign in to comment.