import { CoaRedis, RedisCache } from 'coa-redis'; import { MysqlBin } from '../libs/MysqlBin'; import { CoaMysql } from '../typings'; import { MysqlNative } from './MysqlNative'; export declare class MysqlCache extends MysqlNative { redisCache: RedisCache; constructor(option: CoaMysql.ModelOption, bin: MysqlBin, redisCache: RedisCache); insert(data: CoaMysql.SafePartial, trx?: CoaMysql.Transaction): Promise; mInsert(dataList: Array>, trx?: CoaMysql.Transaction): Promise; updateById(id: string, data: CoaMysql.SafePartial, trx?: CoaMysql.Transaction): Promise; updateByIds(ids: string[], data: CoaMysql.SafePartial, trx?: CoaMysql.Transaction): Promise; updateForQueryById(id: string, query: CoaMysql.Query, data: CoaMysql.SafePartial, trx?: CoaMysql.Transaction): Promise; upsertById(id: string, data: CoaMysql.SafePartial, trx?: CoaMysql.Transaction): Promise; deleteByIds(ids: string[], trx?: CoaMysql.Transaction): Promise; checkById(id: string, pick?: string[], trx?: CoaMysql.Transaction, ms?: number, force?: boolean): Promise>; getById(id: string, pick?: string[], trx?: CoaMysql.Transaction, ms?: number, force?: boolean): Promise; getIdBy(field: string, value: string | number, trx?: CoaMysql.Transaction): Promise; mGetByIds(ids: string[], pick?: string[], trx?: CoaMysql.Transaction, ms?: number, force?: boolean): Promise>; truncate(trx?: CoaMysql.Transaction): Promise; protected findListCount(finger: Array>, query: CoaMysql.Query, trx?: CoaMysql.Transaction): Promise; protected findIdList(finger: Array>, query: CoaMysql.Query, trx?: CoaMysql.Transaction): Promise; protected findIdSortList(finger: Array>, pager: CoaMysql.Pager, query: CoaMysql.Query, trx?: CoaMysql.Transaction): Promise<{ [x: string]: Scheme[] | { last: number; more: boolean; rows: number; }; list: Scheme[]; }>; protected findIdViewList(finger: Array>, pager: CoaMysql.Pager, query: CoaMysql.Query, trx?: CoaMysql.Transaction): Promise<{ list: Scheme[]; pager: { rows: number; page: number; pageMax: number; count: number; }; }>; protected mGetCountBy(field: string, ids: string[], trx?: CoaMysql.Transaction): Promise>; protected getCountBy(field: string, value: string, query?: CoaMysql.Query, trx?: CoaMysql.Transaction): Promise; protected pickResult(data: T, pick: string[]): T | null; protected getCacheNsp(...nsp: string[]): string; protected getCacheChangedDataList(ids: string[], data?: CoaMysql.SafePartial, trx?: CoaMysql.Transaction): Promise[]>; deleteCache(ids: string[], dataList: Array>, trx?: CoaMysql.Transaction): Promise; }