Allo Caching for Deno

Overview

Allo Caching for Deno 🦕

Simple caching solution in Typescript.

Cache

const cache = new Cache<string>();

const cacheKey = 'abc123';

/**
 * Load from cache.
 * If not found, value will be generated and stored in cache.
 */
cache.load(cacheKey, () => {
    const result = 'Lorem ipsum';

    // Some expensive operation
    // ...

    return result
}); // -> string


/**
 * Load from cache.
 */
cache.load(cacheKey); // -> string | undefined


/**
 * Save to cache.
 */
cache.save(cacheKey, 'Lorem ipsum');


/**
 * Check if cache exists.
 */
cache.has(cacheKey); // -> boolean

Documentation 📖

Description of all classes and methods with examples will found in the documentation.


Check out other ours packages 📦 !

You might also like...

A command-line tool to manage Deno scripts installed via deno install

🏞️ nublar nublar is a command-line tool to manage your scripts installed via deno install. 🛳️ Installation deno install --allow-read --allow-write -

Dec 26, 2022

🪐 The IPFS gateway for NFT.Storage is not "another gateway", but a caching layer for NFTs that sits on top of existing IPFS public gateways.

nftstorage.link The IPFS gateway for nft.storage is not "another gateway", but a caching layer for NFT’s that sits on top of existing IPFS public gate

Dec 19, 2022

A fast, safe and easy caching mechanism similar to Redis written in typescript

Viper Viper is a memory based caching mechanism which is aimed towards ease of use and speed. It's in a very early stage right now and not meant to us

Jan 24, 2022

Next-level mongoose caching layer with event based cache clearing

SpeedGoose ## About The Project This project is a next-level mongoose caching library which is fully written in typescript. It's caching on two levels

Dec 15, 2022

Skip a job if it already succeeded for the same repo state. Uses S3 for caching.

Skip a job if it already succeeded for the same repo state. Uses S3 for caching.

🪣 ♻️ S3 Cache Action First Run, Cold Cache Next Run, Cache Hit Description Allows to skip a job if it already succeeded for the same repo state. Uses

Jul 22, 2022

Promisified thunk with caching (pronounced "funky")

phunky phunky (promisified thunk, pronounced funky) is yet another thunk-inspired library, to delay a calculation until its result is needed, but also

Oct 14, 2022

Refresh - Simple browser reload on file change middleware for your Deno web applications.

refresh Simple browser reload on file change middleware for your Deno web applications. Usage To use refresh middleware, just add a few extra lines to

Dec 19, 2022

Create Desktop apps with Deno 🦕

🦕 Astrodon Desktop App Framework (not there yet!) for Deno, based in Tauri Note: Only Windows and Linux is supported at the moment. Feel free to open

Jan 8, 2023

Tiny Telegra.ph API wrapper for Deno

Telegra.ph API wrapper for Deno 🦕 This is a tiny Telegra.ph API wrapper for Deno written in TypeScript. All methods as listed here are available. See

Jul 28, 2022
Releases(v1.2.0)
  • v1.2.0(Mar 5, 2022)

    What's Changed

    • Clear deprecated stuff by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/8

    Full Changelog: https://github.com/adamjosefus/allo_caching/compare/v1.1.0...v1.2.0

    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Mar 5, 2022)

    What's Changed

    • Add cache item dependencies for invalidation by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/6
    • Update Readme by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/7

    Full Changelog: https://github.com/adamjosefus/allo_caching/compare/v1.0.3...v1.1.0

    Source code(tar.gz)
    Source code(zip)
  • v1.0.3(Feb 20, 2022)

    What's Changed

    • Update README.md by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/5

    Full Changelog: https://github.com/adamjosefus/allo_caching/compare/v1.0.2...v1.0.3

    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(Feb 10, 2022)

    What's Changed

    • Update docs by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/4

    Full Changelog: https://github.com/adamjosefus/allo_caching/compare/v1.0.1...v1.0.2

    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(Feb 10, 2022)

    What's Changed

    • Add documentation by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/3

    Full Changelog: https://github.com/adamjosefus/allo_caching/compare/v1.0.0...v1.0.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Feb 10, 2022)

    What's Changed

    • Create Cache class. by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/1
    • Update Readme by @adamjosefus in https://github.com/adamjosefus/allo_caching/pull/2

    New Contributors

    • @adamjosefus made their first contribution in https://github.com/adamjosefus/allo_caching/pull/1

    Full Changelog: https://github.com/adamjosefus/allo_caching/commits/v1.0.0

    Source code(tar.gz)
    Source code(zip)
Owner
Adam Josefus
Adam Josefus
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Opinionated collection of TypeScript definitions and utilities for Deno and Deno Deploy. With complete types for Deno/NPM/TS config files, constructed from official JSON schemas.

Schemas Note: You can also import any type from the default module, ./mod.ts deno.json import { type DenoJson } from "https://deno.land/x/[email protected]

deno911 2 Oct 12, 2022
A caching middeware library for Deno HTTP framework, Oak.

Caching middleware library for Oak Table of Contents Description Getting Started Middleware and caching Authors License Description Zoic is an easy-to

OSLabs Beta 64 Sep 28, 2022
This is a simple boilerplate for a Deno website, deployed with Deno Deploy.

Simple Deno Website Boilerplate This is a simple website boilerplate built using Deno and deployed using Deno Deploy. Demo at simple-deno-website-boil

Bruno Bernardino 15 Dec 3, 2022
TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy

Atlas SDK atlas_sdk is a TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy Links Docs Import Replace LATEST_VERSION with current latest versi

Erfan Safari 20 Dec 26, 2022
Deno bindings for yoga, using Deno FFI.

deno_yoga Deno bindings for yoga, using Deno FFI. Usage flags: --allow-ffi: Requires ffi access to "yogacore.dll", "libyogacore.so", "libyogacore.dyli

迷渡 6 Feb 11, 2022
🛣️ A tiny and fast http request router designed for use with deno and deno deploy

Rutt Rutt is a tiny http router designed for use with deno and deno deploy. It is written in about 200 lines of code and is pretty fast, using an exte

Denosaurs 26 Dec 10, 2022
A small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity

Wren Wren is a small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity. convenient aliases for HTTP responses au

Jakub Neander 69 Dec 12, 2022
deno-ja (Deno Japanese community) showcase

Showcase Deno本家よりも気軽に作ったものを公開できるようなShowcaseです。 スクリーンショットの撮影方法 短めのidを決めていただいて、下記のようにスクリプトを実行してください。 deno task screenshot [url] [id] ※エラーが出る場合は、下記を実行してみ

deno-ja 17 Oct 28, 2022