mirror of
https://github.com/samsonjs/CacheCreek.git
synced 2026-03-26 09:15:56 +00:00
Compare commits
No commits in common. "master" and "0.2.0" have entirely different histories.
1 changed files with 23 additions and 5 deletions
28
README.md
28
README.md
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
`CacheCreek` provides an an LRU cache that allows you to store any item, including objects, pure Swift structs, enums (with associated values), etc. Simply put, it's designed to act like an `NSCache` for everything, including Swift variables.
|
||||
|
||||
]  [](https://sjs.mit-license.org)
|
||||
|
||||
## Features
|
||||
|
||||
- Simply set, get, and remove items based on any key that is `Hashable`
|
||||
|
|
@ -21,6 +19,28 @@
|
|||
- tvOS 9.0+
|
||||
- Xcode 7+
|
||||
|
||||
## Installation using CocoaPods
|
||||
|
||||
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.
|
||||
|
||||
Because `CacheCreek` is written in Swift, you must use frameworks.
|
||||
|
||||
To integrate `CacheCreek` into your Xcode project using CocoaPods, specify it in your `Podfile`:
|
||||
|
||||
```ruby
|
||||
source 'https://github.com/CocoaPods/Specs.git'
|
||||
platform :ios, '8.0'
|
||||
use_frameworks!
|
||||
|
||||
pod 'CacheCreek'
|
||||
```
|
||||
|
||||
Then, run the following command:
|
||||
|
||||
```bash
|
||||
$ pod install
|
||||
```
|
||||
|
||||
## Installation using Carthage
|
||||
|
||||
Add this to your `Cartfile`:
|
||||
|
|
@ -73,6 +93,4 @@ print("\(cache.count)") // shows a count of 2
|
|||
|
||||
# License
|
||||
|
||||
Copyright (c) 2015 Christopher Luu [MIT License](https://github.com/nuudles/CacheIsKing/blob/f93527d8ccc3f88b2e0697e9fd78be28d40a3a26/LICENSE)
|
||||
|
||||
Copyright © 2016 Sami Samhuri [MIT License](https://sjs.mit-license.org)
|
||||
[MIT License](https://sjs.mit-license.org)
|
||||
|
|
|
|||
Loading…
Reference in a new issue