Skip to content
/ Hammer Public

A small experimental not-ready dirty and simple Objective-C library for Key-Value store that uses SQLite.

License

Notifications You must be signed in to change notification settings

bastos/Hammer

Repository files navigation

Hammer

A Key/Value store library.

API

  • Key/Value store: Get/Set/Remove values.
  • Lists manipulation: Push/Pop/Shift/List values.

Example

Key/Value:

[HMRStore sharedInstance] value:@"bastos" forKey:@"user" error:NULL];
[HMRStore sharedInstance] valueforKey:@"user" error:NULL];
[HMRStore sharedInstance] removeValueForKey:@"user" error:NULL];

Lists:

[HMRStore sharedInstance] pushValue:@"1" toList:@"test" error:NULL];
[HMRStore sharedInstance] pushValue:@"2" toList:@"test" error:NULL];    
[HMRStore sharedInstance] popValueFromList:@"test" error:NULL];
[HMRStore sharedInstance] shiftValueFromList:@"test" error:NULL];    
[HMRStore sharedInstance] valuesFromList:@"test" error:NULL];

Using Hammer

Just copy HMRStore.m and HMRStore.h to your project, keep in mind that Hammer uses ARC.

You can also use as a static library.

*Hammer was tested on iOS 4.3 and 5.1.

License

MIT License (read LICENSE)

Authors

About

A small experimental not-ready dirty and simple Objective-C library for Key-Value store that uses SQLite.

Resources

License

Stars

Watchers

Forks

Packages

No packages published