Lines Matching refs:cache
1531 void CalendarCache::createCache(CalendarCache** cache, UErrorCode& status) {
1533 if(cache == NULL) {
1536 *cache = new CalendarCache(32, status);
1538 delete *cache;
1539 *cache = NULL;
1544 int32_t CalendarCache::get(CalendarCache** cache, int32_t key, UErrorCode &status) {
1552 if(*cache == NULL) {
1553 createCache(cache, status);
1560 res = uhash_igeti((*cache)->fTable, key);
1561 U_DEBUG_ASTRO_MSG(("%p: GET: [%d] == %d\n", (*cache)->fTable, key, res));
1567 void CalendarCache::put(CalendarCache** cache, int32_t key, int32_t value, UErrorCode &status) {
1573 if(*cache == NULL) {
1574 createCache(cache, status);
1581 uhash_iputi((*cache)->fTable, key, value, &status);
1582 U_DEBUG_ASTRO_MSG(("%p: PUT: [%d] := %d\n", (*cache)->fTable, key, value));