Latest 0.7.0
Homepage https://github.com/lurado/LDOCappedQueue
License MIT
Platforms ios 8.0
Authors

A queue that only holds a maximum number of items and discards the least recently added ones, if new ones are added and the capacity is reached.

It’s a relatively thin wrapper around NSMutableArray, which is implemented as a circular buffer according to this blog post by Bartosz Ciechanowski). Therefore enqueueing and dequeueing are O(1) operations.

The implementation is not thread safe.

Installation

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

pod "LDOCappedQueue"

Author

Julian Raschke und Sebastian Ludwig GbR, https://www.lurado.com

License

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

Latest podspec

{
    "name": "LDOCappedQueue",
    "version": "0.7.0",
    "summary": "A queue that doesn't grow indefinitely.",
    "description": "A queue that only holds a maximum number of items and discards the least recently added ones, if new ones are added and the capacity is reached.",
    "homepage": "https://github.com/lurado/LDOCappedQueue",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Julian Raschke und Sebastian Ludwig GbR": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lurado/LDOCappedQueue.git",
        "tag": "0.7.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LDOCappedQueue/Classes/**/*"
}

Pin It on Pinterest

Share This