Latest 0.1.0
License MIT
Platforms ios 8.0

Cache parameters

  1. maxSize:Double – max size of cache
  2. capacity:Int – max count of objects in cache
  3. sizeOf:(Value) -> (Double) – closure to count cache object size
  4. cacheDestination:FileCacheDestination – cache destination (only for file cache)
    public enum FileCacheDestination {
    case temporary
    case folder(String)


To run the example project, clone the repo, and run pod install from the Example directory first.


UniversalCache is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'UniversalCache'


kitaisreal, [email protected]


UniversalCache is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "UniversalCache",
    "version": "0.1.0",
    "summary": "IOS Generic LRU Memory and File Cache",
    "description": "IOS Generic LRU Memory and File Cache. Easy to use.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "kitaisreal": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "Classes/**/*",
    "pushed_with_swift_version": "4.0"

Pin It on Pinterest

Share This