PaintingliteCache

Superclass:
NSCache
Declared In:

Introduction

PaintingliteCache 提供SDK框架中Sqlite3数据库快照缓存,缓存数据库表名称和数据库表结构



Methods

-addDatabaseOptionsCache:

操作缓存

-addSnapTableInfoNameCache:tableName:

表结构缓存

-addSnapTableNameCache:

表名称缓存

-addSnapTableNameCache: tableName:

表结构缓存

-pushCacheToLogFile

写入缓存文件

+sharePaintingliteCache

单例模式生成sharePaintingliteCache对象


addDatabaseOptionsCache:


操作缓存

- (void)addDatabaseOptionsCache:(NSString *__nonnull)optStr; 
Parameters
optStr

操作字符串

Discussion

操作缓存


addSnapTableInfoNameCache:tableName:


表结构缓存

- (void)addSnapTableInfoNameCache:(NSArray *__nonnull)infoArray 
        tableName:(NSString *__nonnull)tableName; 
Parameters
infoArray

信息数组

tableName

表名称

Discussion

表结构缓存

See Also


addSnapTableNameCache:


表名称缓存

- (void)addSnapTableNameCache:(NSString *__nonnull)tableName; 
Parameters
tableName

表名称

Discussion

表名称缓存


addSnapTableNameCache: tableName:


表结构缓存

- (void)addSnapTableInfoNameCache:(NSArray *__nonnull)infoArray 
        tableName:(NSString *__nonnull)tableName; 
Parameters
infoArray

信息数组

tableName

表名称

Discussion

表结构缓存

See Also


pushCacheToLogFile


写入缓存文件

- (void)pushCacheToLogFile; 
Discussion

写入缓存文件


sharePaintingliteCache


单例模式生成sharePaintingliteCache对象

+ (instancetype)sharePaintingliteCache; 
Return Value

PaintingliteCache

Discussion

生成sharePaintingliteCache在项目工程全局中只生成一个实例对象


Properties

baseReleaseLine

支持缓存操作释放基准线

limitedCacheCount

支持缓存操作的最大条数

optCount

当前数据库中进行操作的次数

tableCount

当前数据库中存在表个数


baseReleaseLine


支持缓存操作释放基准线

@property (nonatomic,
    assign)NSUInteger baseReleaseLine; 

limitedCacheCount


支持缓存操作的最大条数

@property (nonatomic,
    assign)NSUInteger limitedCacheCount; 

optCount


当前数据库中进行操作的次数

@property (nonatomic,
    assign)NSUInteger optCount; 

tableCount


当前数据库中存在表个数

@property (nonatomic,
    assign)NSUInteger tableCount;