Skip to content

A Objective-C local storage strategy, faster, safer, simpler and eleganter than NSUserDefaults.

Notifications You must be signed in to change notification settings

titman/LCUserDefaults

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

LCUserDefaults

A local storage strategy, faster, safer, simpler and eleganter than NSUserDefaults.

LCUserDefaults use LEVEL-DB.

LevelDB、TreeDB、SQLite3 performance test: http://www.oschina.net/question/12_25944

Example

NSLog(@"Will write '123' to  db. (Path : %@)",LCUserDefaults.DB.path);

LCUserDefaults.DB[@"TEST_KEY"] = @"123"; // or [[LCUserDefaults defaultDB] setObject:(id) forKey:(NSString *)

NSLog(@"Write finished.");

NSString * result = LCUserDefaults.DB[@"TEST_KEY"]; // or [[LCUserDefaults defaultDB] objectForKey:(NSString *)]

NSLog(@"Read from local db, result [ %@ ]",result);

About

A Objective-C local storage strategy, faster, safer, simpler and eleganter than NSUserDefaults.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published