chore(nodes): update ObjectSerializerForwardCache docstring

This commit is contained in:
psychedelicious 2024-02-10 10:11:31 +11:00
parent 6bb2dda3f1
commit a7207ed8cf

View File

@ -10,7 +10,10 @@ if TYPE_CHECKING:
class ObjectSerializerForwardCache(ObjectSerializerBase[T]): class ObjectSerializerForwardCache(ObjectSerializerBase[T]):
"""Provides a simple forward cache for an underlying storage. The cache is LRU and has a maximum size.""" """
Provides a LRU cache for an instance of `ObjectSerializerBase`.
Saving an object to the cache always writes through to the underlying storage.
"""
def __init__(self, underlying_storage: ObjectSerializerBase[T], max_cache_size: int = 20): def __init__(self, underlying_storage: ObjectSerializerBase[T], max_cache_size: int = 20):
super().__init__() super().__init__()