Skip to content

tuvalframework/auth

Repository files navigation

Tuval Auth

license npm latest package npm downloads Follow on Twitter Follow on Youtube

Tuval framework önbellek kütüphanesi, uygulama önbelleğini depolamak, yüklemek ve temizlemek için basit ve hafif bir kütüphanedir. Bu kütüphane, öğrenmesi ve kullanması kolay olacak şekilde tasarlanmıştır. Bu kütüphane Appconda ekibi tarafından yazilmakta ve desteklenmektedir.

Bu kütüphane Tuval Framework projesinin bir parçası olmasına rağmen, bağımlılık içermemektedir ve herhangi bir Nodejs projesi veya framework ile bağımsız olarak kullanılabilir.

Getting Started

Install using npm:

npm install @tuval/cache

Install using yarn:

yarn add @tuval/cache

File System Adapter

import { Cache, Filesystem } from "@tuval/cache";

const cache = new Cache(new Filesystem("./cache"));

const data = cache.load("data-from-example.com", 60 * 60 * 24 * 30 * 3 /* 3 months */);

if(!data) {
    const data = await fetch("https://example.com");
    cache.save("data-from-example.com", data);
}

console.log(data);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published