Skip to content

SqliteBlobCache(string, IScheduler?, bool) constructor

Defined in

Type: SqliteBlobCache Namespace: ReactiveMarbles.CacheDatabase.Sqlite3 Assembly: ReactiveMarbles.CacheDatabase.Sqlite3.dll

Applies to

netstandard2.0

Overloads

  • 1. public SqliteBlobCache(string fileName, IScheduler? scheduler = null, bool storeDateTimeAsTicks = true)
  • 2. public SqliteBlobCache(SQLiteConnectionString connectionString, IScheduler? scheduler = null)

1. Overload

public SqliteBlobCache(string fileName, IScheduler? scheduler = null, bool storeDateTimeAsTicks = true)

View source

Summary: Initializes a new instance of the SqliteBlobCache class.

Parameters

NameTypeDescription
fileNamestringThe database file name.
scheduler = null[IScheduler?](#The scheduler.
storeDateTimeAsTicks = trueboolSpecifies whether to store DateTime properties as ticks (true) or strings (false). You absolutely do want to store them as Ticks in all new projects. The value of false is only here for backwards compatibility. There is a significant speed advantage, with no down sides, when setting storeDateTimeAsTicks = true. If you use DateTimeOffset properties, it will be always stored as ticks regardingless the storeDateTimeAsTicks parameter.

2. Overload

public SqliteBlobCache(SQLiteConnectionString connectionString, IScheduler? scheduler = null)

View source

Summary: Initializes a new instance of the SqliteBlobCache class.

Parameters

NameTypeDescription
connectionStringSQLiteConnectionStringThe connection string.
scheduler = null[IScheduler?](#The scheduler.