Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Page (0.14 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      EXPECT_FALSE(cache.Lookup(key, &value));
    }
    
    TEST(ExpiringLRUCacheTest, MaxEntries) {
      // max_age of 0 means nothing will be cached.
      tf_gcs_filesystem::ExpiringLRUCache<int> cache1(0, 4);
      cache1.Insert("a", 1);
      int value = 0;
      EXPECT_FALSE(cache1.Lookup("a", &value));
      // Now set max_age = 1 and verify the LRU eviction logic.
      tf_gcs_filesystem::ExpiringLRUCache<int> cache2(1, 4);
      cache2.Insert("a", 1);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                                     status);
          });
    
      uint64_t stat_cache_max_age = kStatCacheDefaultMaxAge;
      size_t stat_cache_max_entries = kStatCacheDefaultMaxEntries;
      const char* stat_cache_max_age_env = std::getenv(kStatCacheMaxAge);
      if (stat_cache_max_age_env &&
          absl::SimpleAtoi(stat_cache_max_age_env, &value)) {
        stat_cache_max_age = value;
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top