Skip to content

Commit 6686721

Browse files
authored
Merge pull request #83 from 8W9aG/release-1.1.0
Release 1.1.0
2 parents 1a314b8 + e45d478 commit 6686721

7 files changed

Lines changed: 29 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. SPTPersiste
33

44
--
55

6+
## [1.1.0](https://github.com/spotify/SPTPersistentCache/releases/tag/1.1.0)
7+
_Released on 2016-11-18._
8+
9+
### Added
10+
* Added ability to track the caches performance in time.
11+
12+
### Fixed
13+
* When deleting or adding a large amount of items, the cache can now be configured prioritise these insertions compared to normal reads/writes.
14+
15+
### Removed
16+
* Removed support for iOS 7.x.
17+
* Removed support for OSX 10.9.x.
18+
19+
### Changed
20+
* Now uses NSOperationQueues rather than GCD for prioritisation reasons.
21+
* Large removes, prunes and garbage collection routines are now asynchronous (this is an API breakage).
622

723
## [1.0.0](https://github.com/spotify/SPTPersistentCache/releases/tag/1.0.0)
824
_Released on 2015-03-11._

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
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.
1313

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

1717
## Architecture :triangular_ruler:
1818
`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.
@@ -34,7 +34,7 @@ $ gem install cocoapods
3434
```
3535
Then simply add `SPTPersistentCache` to your `Podfile`.
3636
```
37-
pod 'SPTPersistentCache', '~> 1.0'
37+
pod 'SPTPersistentCache', '~> 1.1.0'
3838
```
3939
Lastly let CocoaPods do its thing by running:
4040
```shell
@@ -49,7 +49,7 @@ $ brew install carthage
4949
```
5050
You will also need to add `SPTPersistentCache` to your `Cartfile`:
5151
```
52-
github 'spotify/SPTPersistentCache' ~> 1.0
52+
github 'spotify/SPTPersistentCache' ~> 1.1.0
5353
```
5454
After that is all said and done, let Carthage pull in SPTPersistentCache like so:
5555
```shell

SPTPersistentCache.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "SPTPersistentCache"
4-
s.version = "1.0.0"
4+
s.version = "1.1.0"
55
s.summary = "SPTPersistentCache is a fast, binary, LRU cache used in the Spotify iOS app"
66

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

13-
s.ios.deployment_target = "7.0"
14-
s.osx.deployment_target = "10.8"
13+
s.ios.deployment_target = "8.0"
14+
s.osx.deployment_target = "10.10"
1515

1616
s.homepage = "https://github.com/spotify/SPTPersistentCache"
1717
s.social_media_url = "https://twitter.com/spotifyeng"

SPTPersistentCache.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
0595F3381C50117B0052328B /* SPTPersistentCacheGarbageCollector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPTPersistentCacheGarbageCollector.h; sourceTree = "<group>"; };
102102
0595F3391C50117B0052328B /* SPTPersistentCacheGarbageCollector.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTPersistentCacheGarbageCollector.m; sourceTree = "<group>"; };
103103
0595F33B1C5011E30052328B /* SPTPersistentCache+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "SPTPersistentCache+Private.h"; sourceTree = "<group>"; };
104+
05C0B6531DDF7F9C00DDC99A /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
104105
696CD7841C4707E20071DD18 /* crc32iso3309.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = crc32iso3309.c; sourceTree = "<group>"; };
105106
696CD7851C4707E20071DD18 /* crc32iso3309.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = crc32iso3309.h; sourceTree = "<group>"; };
106107
696CD7861C4707E20071DD18 /* SPTPersistentCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTPersistentCache.m; sourceTree = "<group>"; };
@@ -250,6 +251,7 @@
250251
055725EE1C651EF200EF6787 /* CONTRIBUTING.md */,
251252
055725ED1C651ED600EF6787 /* LICENSE */,
252253
055725EB1C6519B700EF6787 /* README.md */,
254+
05C0B6531DDF7F9C00DDC99A /* CHANGELOG.md */,
253255
);
254256
name = "Supporting Files";
255257
sourceTree = "<group>";

SPTPersistentCacheFramework/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>$(CURRENT_PROJECT_VERSION)</string>
22+
<string>1.1.0</string>
2323
<key>NSHumanReadableCopyright</key>
24-
<string>Copyright © 2016 Will Sackfield. All rights reserved.</string>
24+
<string>Copyright © 2016 Spotify. All rights reserved.</string>
2525
<key>NSPrincipalClass</key>
2626
<string></string>
2727
</dict>

Tests/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>1.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>1.1.0</string>
2323
</dict>
2424
</plist>

Viewer/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<key>LSMinimumSystemVersion</key>
2626
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
2727
<key>NSHumanReadableCopyright</key>
28-
<string>Copyright © 2014 Dmitry Ponomarev. All rights reserved.</string>
28+
<string>Copyright © 2014 Spotify. All rights reserved.</string>
2929
<key>NSMainNibFile</key>
3030
<string>MainMenu</string>
3131
<key>NSPrincipalClass</key>

0 commit comments

Comments
 (0)