- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for lruCache (0.31 sec)
-
pilot/pkg/model/typed_xds_cache.go
} type evictKeyConfigs[K comparable] struct { key K dependentConfigs []ConfigHash } type lruCache[K comparable] struct { enableAssertions bool store simplelru.LRUCache[K, cacheValue] // token stores the latest token of the store, used to prevent stale data overwrite. // It is refreshed when Clear or ClearAll are called token CacheToken mu sync.RWMutex
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 05:26:03 UTC 2024 - 11K bytes - Viewed (0) -
pilot/pkg/model/typed_xds_cache_test.go
ConfigKey{Kind: kind.DestinationRule, Name: "name", Namespace: "namespace"}.HashCode(), }, } c := newTypedXdsCache[uint64]() cache := c.(*lruCache[uint64]) assert.Equal(t, cache.store.Len(), 0) assert.Equal(t, cache.indexLength(), 0) // adding the entry populates the indexes c.Add(firstEntry.Key(), firstEntry, req, res)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 29 20:35:31 UTC 2024 - 18.2K bytes - Viewed (0) -
docs/de/docs/advanced/settings.md
`@lru_cache` ist Teil von `functools`, welches Teil von Pythons Standardbibliothek ist. Weitere Informationen dazu finden Sie in der <a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" class="external-link" target="_blank">Python Dokumentation für `@lru_cache`</a>. ## Zusammenfassung
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:17:14 UTC 2024 - 17.8K bytes - Viewed (0) -
docs/em/docs/advanced/settings.md
`@lru_cache` 🍕 `functools` ❔ 🍕 🐍 🐩 🗃, 👆 💪 ✍ 🌅 🔃 ⚫️ <a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" class="external-link" target="_blank">🐍 🩺 `@lru_cache`</a>. ## 🌃 👆 💪 ⚙️ Pydantic ⚒ 🍵 ⚒ ⚖️ 📳 👆 🈸, ⏮️ 🌐 🏋️ Pydantic 🏷. * ⚙️ 🔗 👆 💪 📉 🔬. * 👆 💪 ⚙️ `.env` 📁 ⏮️ ⚫️.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 11.4K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 18 23:43:13 UTC 2024 - 15.7K bytes - Viewed (0) -
docs/zh/docs/advanced/settings.md
这样,它的行为几乎就像是一个全局变量。但是由于它使用了依赖项函数,因此我们可以轻松地进行测试时的覆盖。 `@lru_cache` 是 `functools` 的一部分,它是 Python 标准库的一部分,您可以在<a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" class="external-link" target="_blank">Python 文档中了解有关 `@lru_cache` 的更多信息</a>。 ## 小结 您可以使用 Pydantic 设置处理应用程序的设置或配置,利用 Pydantic 模型的所有功能。 * 通过使用依赖项,您可以简化测试。 * 您可以使用 `.env` 文件。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 13.9K bytes - Viewed (0) -
scripts/docs.py
import json import logging import os import re import shutil import subprocess from functools import lru_cache from http.server import HTTPServer, SimpleHTTPRequestHandler from importlib import metadata from multiprocessing import Pool from pathlib import Path from typing import Any, Dict, List, Optional, Union import mkdocs.commands.build import mkdocs.commands.serve import mkdocs.config import mkdocs.utils import typer
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Jan 22 19:26:14 UTC 2024 - 10.9K bytes - Viewed (0) -
docs/en/docs/release-notes.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 14 15:07:37 UTC 2024 - 395.4K bytes - Viewed (0)