Skip to content

SerializedDataStorage is a simple caching class, using NSKeyedArchiver.

Notifications You must be signed in to change notification settings

hirohisa/SerializedDataStorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SerializedDataStorage

SerializedDataStorage is a simple caching class. It uses NSKeyedArchiver, dont use Core Data library.

Example Usage

insert object

    NSDictionary *dictionary = @{@"id":@(1)};
    SSData *record = [[SSData alloc] initWithDictionary:dictionary];
    [[SerializedDataStorage sharedStorage] stackRecord:record];

select all of objects

    - (NSArray *)fetchAll;

select objects with conditions

    - (NSArray *)fetchResultsByPredicate:(NSPredicate *)predicate;

select object with identifier

    - (id)fetchResultByIdentifier:(id)identifier;

Features

  • UnitTest
  • bugfix Demo.project

License

SerializedDataStorage is available under the MIT license.

About

SerializedDataStorage is a simple caching class, using NSKeyedArchiver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published