Skip to content

Commit

Permalink
Merge pull request #83 from 8W9aG/release-1.1.0
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
8W9aG authored Nov 18, 2016
2 parents 1a314b8 + e45d478 commit 6686721
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. SPTPersiste

--

## [1.1.0](https://github.com/spotify/SPTPersistentCache/releases/tag/1.1.0)
_Released on 2016-11-18._

### Added
* Added ability to track the caches performance in time.

### Fixed
* When deleting or adding a large amount of items, the cache can now be configured prioritise these insertions compared to normal reads/writes.

### Removed
* Removed support for iOS 7.x.
* Removed support for OSX 10.9.x.

### Changed
* Now uses NSOperationQueues rather than GCD for prioritisation reasons.
* Large removes, prunes and garbage collection routines are now asynchronous (this is an API breakage).

## [1.0.0](https://github.com/spotify/SPTPersistentCache/releases/tag/1.0.0)
_Released on 2015-03-11._
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Everyone tries to implement a cache at some point in their app’s lifecycle, and this is ours. This is a library that allows people to cache `NSData` with time to live (TTL) values and semantics for disk management.

- [x] 📱 iOS 8.0+
- [x] 💻 OS X 10.9+
- [x] 💻 OS X 10.10+

## Architecture :triangular_ruler:
`SPTPersistentCache` is designed as an LRU cache which makes use of the file system to store files as well as inserting a cache header into each file. This cache header allows us to track the TTL, last updated time, the redundancy check and more. This allows the cache to know how often a file is accessed, when it was made, whether it has become corrupt and allows decisions to be made on whether the cache is stale.
Expand All @@ -34,7 +34,7 @@ $ gem install cocoapods
```
Then simply add `SPTPersistentCache` to your `Podfile`.
```
pod 'SPTPersistentCache', '~> 1.0'
pod 'SPTPersistentCache', '~> 1.1.0'
```
Lastly let CocoaPods do its thing by running:
```shell
Expand All @@ -49,7 +49,7 @@ $ brew install carthage
```
You will also need to add `SPTPersistentCache` to your `Cartfile`:
```
github 'spotify/SPTPersistentCache' ~> 1.0
github 'spotify/SPTPersistentCache' ~> 1.1.0
```
After that is all said and done, let Carthage pull in SPTPersistentCache like so:
```shell
Expand Down
6 changes: 3 additions & 3 deletions SPTPersistentCache.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SPTPersistentCache"
s.version = "1.0.0"
s.version = "1.1.0"
s.summary = "SPTPersistentCache is a fast, binary, LRU cache used in the Spotify iOS app"

s.description = <<-DESC
Expand All @@ -10,8 +10,8 @@ Pod::Spec.new do |s|
with TTL values and semantics for disk management.
DESC

s.ios.deployment_target = "7.0"
s.osx.deployment_target = "10.8"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"

s.homepage = "https://github.com/spotify/SPTPersistentCache"
s.social_media_url = "https://twitter.com/spotifyeng"
Expand Down
2 changes: 2 additions & 0 deletions SPTPersistentCache.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
0595F3381C50117B0052328B /* SPTPersistentCacheGarbageCollector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPTPersistentCacheGarbageCollector.h; sourceTree = "<group>"; };
0595F3391C50117B0052328B /* SPTPersistentCacheGarbageCollector.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTPersistentCacheGarbageCollector.m; sourceTree = "<group>"; };
0595F33B1C5011E30052328B /* SPTPersistentCache+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "SPTPersistentCache+Private.h"; sourceTree = "<group>"; };
05C0B6531DDF7F9C00DDC99A /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
696CD7841C4707E20071DD18 /* crc32iso3309.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = crc32iso3309.c; sourceTree = "<group>"; };
696CD7851C4707E20071DD18 /* crc32iso3309.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = crc32iso3309.h; sourceTree = "<group>"; };
696CD7861C4707E20071DD18 /* SPTPersistentCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTPersistentCache.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -250,6 +251,7 @@
055725EE1C651EF200EF6787 /* CONTRIBUTING.md */,
055725ED1C651ED600EF6787 /* LICENSE */,
055725EB1C6519B700EF6787 /* README.md */,
05C0B6531DDF7F9C00DDC99A /* CHANGELOG.md */,
);
name = "Supporting Files";
sourceTree = "<group>";
Expand Down
4 changes: 2 additions & 2 deletions SPTPersistentCacheFramework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>1.1.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 Will Sackfield. All rights reserved.</string>
<string>Copyright © 2016 Spotify. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>1.1.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Viewer/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Dmitry Ponomarev. All rights reserved.</string>
<string>Copyright © 2014 Spotify. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand Down

0 comments on commit 6686721

Please sign in to comment.