Lines Matching defs:PCache1
86 typedef struct PCache1 PCache1; typedef
175 struct PCache1 { struct
182 PGroup *pGroup; /* PGroup this cache belongs to */
183 unsigned int *pnPurgeable; /* Pointer to pGroup->nPurgeable */
184 int szPage; /* Size of database content section */
185 int szExtra; /* sizeof(MemPage)+sizeof(PgHdr) */
186 int szAlloc; /* Total size of one pcache line */
187 int bPurgeable; /* True if cache is purgeable */
188 unsigned int nMin; /* Minimum number of pages reserved */
189 unsigned int nMax; /* Configured "cache_size" value */
190 unsigned int n90pct; /* nMax*9/10 */
191 unsigned int iMaxKey; /* Largest key seen since xTruncate() */
192 unsigned int nPurgeableDummy; /* pnPurgeable points here when not used*/
197 unsigned int nRecyclable; /* Number of pages in the LRU list */
198 unsigned int nPage; /* Total number of pages in apHash */
199 unsigned int nHash; /* Number of slots in apHash[] */
200 PgHdr1 **apHash; /* Hash table for fast lookup by key */
201 PgHdr1 *pFree; /* List of unused pcache-local pages */
202 void *pBulk; /* Bulk memory used by pcache-local */