Release 1.1.0 by 8W9aG · Pull Request #83 · spotify/SPTPersistentCache · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
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