feat(cache): Add lightweight in-memory cache with TTL and LRU eviction

This commit is contained in:
cogwheel0
2025-11-22 21:53:14 +05:30
parent 8ed75f8f14
commit c4a36bb51c
14 changed files with 1298 additions and 242 deletions

View File

@@ -15,6 +15,13 @@ final class HiveStoreKeys {
// Cache entries
static const String localConversations = 'local_conversations';
static const String localUser = 'local_user';
static const String localUserAvatar = 'local_user_avatar';
static const String localBackendConfig = 'local_backend_config';
static const String localTransportOptions = 'local_transport_options';
static const String localTools = 'local_tools';
static const String localDefaultModel = 'local_default_model';
static const String localModels = 'local_models';
static const String localFolders = 'local_folders';
static const String attachmentQueueEntries = 'attachment_queue_entries';
static const String taskQueue = 'outbound_task_queue_v1';