Latest 0.1.0
Homepage https://github.com/lipka/LLARateLimiter
License MIT
Platforms ios , requires ARC
Authors

LLARateLimiter is a rate limiter with a deligthful API. You can for example use it to prevent the users of your app hitting your API endpoint too often, even though you know there is no new data available.

Usage

[LLARateLimiter executeBlock:^{
    // Do stuff
} name:@"task" limit:30];

// Reset specific limit manually
[LLARateLimiter resetLimitForName:@"task"];

...

// Reset all limits
[LLARateLimiter resetAllLimits];

See the header for full documentation.

Installation

CocoaPods is the recommended method of installing LLARateLimiter. Simply add the following line to your Podfile:

Podfile

pod 'LLARateLimiter'

Otherwise you can just add the files under LLARateLimiter to your project.

Requirements

LLARateLimiter is tested on iOS6 and iOS7 and requires ARC.

Contact

Lukas Lipka

License

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

Latest podspec

{
    "name": "LLARateLimiter",
    "version": "0.1.0",
    "authors": {
        "Lukas Lipka": "[email protected]"
    },
    "homepage": "https://github.com/lipka/LLARateLimiter",
    "summary": "A rate limiter with a delightful API.",
    "source": {
        "git": "https://github.com/lipka/LLARateLimiter.git",
        "tag": "0.1.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": null
    },
    "requires_arc": true,
    "source_files": "LLARateLimiter"
}

Pin It on Pinterest

Share This