Skip to content

dotfelixb/NQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 12, 2024
f8c997d · Mar 12, 2024

History

20 Commits
Oct 25, 2023
Mar 12, 2024
Oct 19, 2023
Oct 25, 2023
Oct 25, 2023

Repository files navigation

NQuery

Simple caching layer for data fetching

Installing NQuery

You can install NQuery with NuGet:

Install-Package NQuery

Or for Redis

Install-Package NQuery.Redis

Or via the .NET Core command line interface:

dotnet add package NQuery

Or for Redis

dotnet add package NQuery

Using NQuery

You can use NQuery as

var query = NQuery.Create(new NQueryConfiguration{
    UseInMemory = true
});

await query.Query( "query-key", await () => QueryYourData() );

Or for Asp.net Core Dependency for Redis as

services.AddNQuery(cfg =>
{
    cfg.UseRedis(opts =>
    {
        opts.Endpoints.Add(new RedisEndpoint() { Host = "localhost", Port = 6379 });
    });
})

Examples

See Test

About

Query Redis Cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages