Class AkavacheBuilderExtensions
- Namespace
- Akavache.EncryptedSqlite3
- Assembly
- Akavache.EncryptedSqlite3.dll
Provides extension methods for configuring Akavache to use SQLite-based blob caches.
public static class AkavacheBuilderExtensions
- Inheritance
-
AkavacheBuilderExtensions
Methods
WithEncryptedSqliteProvider(IAkavacheBuilder)
Configures the builder to use the encrypted SQLite provider for secure data storage.
public static IAkavacheBuilder WithEncryptedSqliteProvider(this IAkavacheBuilder builder)
Parameters
builderIAkavacheBuilderThe Akavache builder to configure.
Returns
- IAkavacheBuilder
The builder instance for fluent configuration.
Exceptions
- ArgumentNullException
Thrown when
builderis null.
WithSqliteDefaults(IAkavacheBuilder, string)
Configures default SQLite-based caches for all cache types.
public static IAkavacheBuilder WithSqliteDefaults(this IAkavacheBuilder builder, string password)
Parameters
builderIAkavacheBuilderThe builder instance.
passwordstringThe password.
Returns
- IAkavacheBuilder
The builder instance for fluent configuration.
Exceptions
- ArgumentNullException
builder.
- InvalidOperationException
No serializer has been registered. Call CacheDatabase.Serializer = new SerializerType before using SQLite defaults. or Application name must be set before configuring SQLite defaults. Call WithApplicationName() first.