LiteX.Cache.SQLite 2.0.1

SQLite caching based on SQLite database.
Small library for manage cache with SQLite. A quick setup for SQLite Caching.
     Wrapper library is just written for the purpose to bring a new level of ease to the developers who deal with SQLite Cache integration with your system.

     
 LiteXCache is simple yet powerful and very high-performance cache mechanism and incorporating both synchronous and asynchronous usage with some advanced usages of caching which can help us to handle caching more easier!
 Provide Cache service for any type of application (.NET Core, .NET Standard).
 Very simple yet advanced configuration. Minimal (one line) code configuration is required.

There is a newer version of this package available.
See the version list below for details.
Install-Package LiteX.Cache.SQLite -Version 2.0.1
dotnet add package LiteX.Cache.SQLite --version 2.0.1
<PackageReference Include="LiteX.Cache.SQLite" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LiteX.Cache.SQLite --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

LiteX SQLite Cache

SQLite caching based on SQLite database. Small library for manage cache with SQLite. A quick setup for SQLite Caching.

This package is simple yet powerful and very high performance cache mechanism and incorporating both synchronous and asynchronous usage with some advanced usages of caching which can help us to handle caching more easier!

Provide Cache service for any type of application (.NET Core, .NET Standard).

Very simple yet advanced configuration. The main goal of the LiteXCache package is to make developer's life easier to handle even very complex caching scenarios.

Basic Usage

Install the package

Install via Nuget.

PM> Install-Package LiteX.Cache.SQLite
AppSettings
{  
  //LiteX SQLite Config settings (Optional)
  "SQLiteConfig": {
    "FilePath": "",
    "FileName": "",
    "EnableLogging": true
  }
}
Configure Startup Class
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // 1. Use default configuration from appsettings.json's 'SQLiteConfig'
        services.AddLiteXSQLiteCache();

        //OR
        // 2. Load configuration settings using options.
        services.AddLiteXSQLiteCache(option =>
        {
            option.FileName = "";
            option.FilePath = "";
            option.OpenMode = Microsoft.Data.Sqlite.SqliteOpenMode.ReadWriteCreate;
            option.CacheMode = Microsoft.Data.Sqlite.SqliteCacheMode.Default;
            option.EnableLogging = false;
        });

        //OR
        // 3. Load configuration settings on your own.
        // (e.g. appsettings, database, hardcoded)
        var sqLiteConfig = new SQLiteConfig()
        {
            FileName = "",
            FilePath = "",
            OpenMode = Microsoft.Data.Sqlite.SqliteOpenMode.ReadWriteCreate,
            CacheMode = Microsoft.Data.Sqlite.SqliteCacheMode.Default,
            EnableLogging = false,
        };
        services.AddLiteXSQLiteCache(sqLiteConfig);
    }    
    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        //SQLite
        app.UseLiteXSQLiteCache();
    }
}

Sample Usage Example

Same for all providers.

For more helpful information about LiteX Caching, Please click here.

LiteX SQLite Cache

SQLite caching based on SQLite database. Small library for manage cache with SQLite. A quick setup for SQLite Caching.

This package is simple yet powerful and very high performance cache mechanism and incorporating both synchronous and asynchronous usage with some advanced usages of caching which can help us to handle caching more easier!

Provide Cache service for any type of application (.NET Core, .NET Standard).

Very simple yet advanced configuration. The main goal of the LiteXCache package is to make developer's life easier to handle even very complex caching scenarios.

Basic Usage

Install the package

Install via Nuget.

PM> Install-Package LiteX.Cache.SQLite
AppSettings
{  
  //LiteX SQLite Config settings (Optional)
  "SQLiteConfig": {
    "FilePath": "",
    "FileName": "",
    "EnableLogging": true
  }
}
Configure Startup Class
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // 1. Use default configuration from appsettings.json's 'SQLiteConfig'
        services.AddLiteXSQLiteCache();

        //OR
        // 2. Load configuration settings using options.
        services.AddLiteXSQLiteCache(option =>
        {
            option.FileName = "";
            option.FilePath = "";
            option.OpenMode = Microsoft.Data.Sqlite.SqliteOpenMode.ReadWriteCreate;
            option.CacheMode = Microsoft.Data.Sqlite.SqliteCacheMode.Default;
            option.EnableLogging = false;
        });

        //OR
        // 3. Load configuration settings on your own.
        // (e.g. appsettings, database, hardcoded)
        var sqLiteConfig = new SQLiteConfig()
        {
            FileName = "",
            FilePath = "",
            OpenMode = Microsoft.Data.Sqlite.SqliteOpenMode.ReadWriteCreate,
            CacheMode = Microsoft.Data.Sqlite.SqliteCacheMode.Default,
            EnableLogging = false,
        };
        services.AddLiteXSQLiteCache(sqLiteConfig);
    }    
    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        //SQLite
        app.UseLiteXSQLiteCache();
    }
}

Sample Usage Example

Same for all providers.

For more helpful information about LiteX Caching, Please click here.

Release Notes

Logging support.
     Code re-factoring and optimization changes. (use c# latest minor version - 7.3)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
8.0.0 249 9/19/2019
2.0.2 324 1/31/2019
2.0.1 204 8/9/2018
2.0.0 206 6/30/2018
1.0.0 205 6/23/2018