initialize method

Future<void> initialize()

Creates the backing table when it does not exist. Called automatically on first use; call it eagerly at boot to surface schema errors early.

Implementation

Future<void> initialize() async {
  if (_initialized) return;
  await dvEnsureFrameworkTable(database, '''
    CREATE TABLE IF NOT EXISTS $tableName (
      cache_key VARCHAR(255) PRIMARY KEY,
      value TEXT NOT NULL,
      expires_at BIGINT
    )
  ''');
  _initialized = true;
}