mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(nodes): update ObjectSerializerForwardCache docstring
This commit is contained in:
parent
6bb2dda3f1
commit
a7207ed8cf
@ -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__()
|
||||||
|
Loading…
Reference in New Issue
Block a user