Latest 1.0.1
Homepage https://github.com/nhfc99/NhfCacheDeal
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

介绍

针对本地普通数据的缓存:基本数据类型、NSDictory、NSArray等

安装

  • pod ‘DeviceInfo’
  • 手动下载然后将文件夹拖至工程中即可

使用方法

/*
功能:测试是否记录了某个键
@param key键名
return true时为登记了,false为没有登记
/

-(BOOL)isRegisterKey:(NSString
)key;

/*
功能:保存字符串数据
@param stringdata字符串数据
@param key键数据
/

-(void)saveStringValue:(NSString
)stringdata key:(NSString*)key;

/*
功能:获取指定键值
@param key键名
/
-(id)getStringKey:(NSString*)key;

/*
功能:删除指定键值
@param key键名
/

-(void)removeDataKey:(NSString*)key;

/*
功能:保存对象到缓存中去
@param object对象
@param key键名
/

-(void)saveObject:(id)object key:(NSString
)key;

/*
功能:获取指定键的对象
@param key指定键名
@return 返回对象
/

-(id)getObject:(NSString
)key;

  • (NSArray )getArrayByCacheKey:(NSString )cacheKey sp:(NSString *)sp;

  • (void)saveArrayByCacheKey:(NSString )cacheKey objects:(NSArray )objects sp:(NSString *)sp;

Latest podspec

{
    "name": "NhfCacheDeal",
    "version": "1.0.1",
    "summary": "u9488u5bf9u672cu5730u666eu901au6570u636eu7684u7f13u5b58uff1au57fau672cu6570u636eu7c7bu578bu3001NSDictoryu3001NSArrayu7b49",
    "homepage": "https://github.com/nhfc99/NhfCacheDeal",
    "license": "MIT",
    "authors": {
        "u725bu5b8fu98de": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nhfc99/NhfCacheDeal.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "CacheDeal/*.{h,m}",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This