objc-RLite is a lightweight, high-performance key-value store database written in Objective-C. It is designed to provide fast and efficient data storage and retrieval capabilities for iOS and macOS applications. With its straightforward API and compact file format, objc-RLite is an excellent choice for projects requiring quick persistence of data with minimal overhead.
- Compact file format
- High-performance, in-memory key-value store
- Support for various data types including strings, numbers, and arrays
- Atomic write operations
- Thread-safe design
- Simple and easy-to-use API
- Fully compatible with Objective-C projects on iOS and macOS
To integrate objc-RLite into your project, you can use CocoaPods or manually incorporate the framework.
Installation using CocoaPods
1. Add the following line to your Podfile: pod 'objc-rlite'
2. Run pod install
command in the terminal
3. Import the framework in your code file using: #import <objc-rlite/objc-rlite.h>
Manual installation
1. Download the latest release of objc-RLite from the GitHub repository: https://github.com/seppo0010/objc-rlite
2. Drag and drop the objc-rlite
folder into your Xcode project
3. Confirm that the framework is added to your target’s “Linked Frameworks and Libraries” section
To start using objc-RLite, follow the steps below:
Create a database
Create an instance of `RLiteDatabase` class in your code to interact with the database.
RLiteDatabase *db = [[RLiteDatabase alloc] init];
Store a value
objc-RLite supports storing various data types such as strings, numbers, and arrays. You can use the `rliteSet` method to store a value associated with a key.
[db rliteSet:@"key" value:@"value"];
Retrieve a value
To retrieve a value associated with a specific key, utilize the `rliteGet` method.
NSString *value = [db rliteGet:@"key"];
Delete a value
To delete a value associated with a key, use the `rliteDel` method.
[db rliteDel:@"key"];
For detailed information about the API and functionality provided by objc-RLite, please refer to the official documentation available at https://github.com/seppo0010/objc-rlite/wiki.
objc-RLite is released under the MIT License. For more information, please visit the GitHub repository: https://github.com/seppo0010/objc-rlite.