mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-14 14:37:57 -05:00
- New routes to clear, enable, disable and get the status of the cache - Status includes hits, misses, size, max size, enabled - Add client cache queries and mutations, abstracted into hooks - Add invocation cache status area (next to queue status) w/ buttons
10 lines
449 B
Python
10 lines
449 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class InvocationCacheStatus(BaseModel):
|
|
size: int = Field(description="The current size of the invocation cache")
|
|
hits: int = Field(description="The number of cache hits")
|
|
misses: int = Field(description="The number of cache misses")
|
|
enabled: bool = Field(description="Whether the invocation cache is enabled")
|
|
max_size: int = Field(description="The maximum size of the invocation cache")
|