https://github.com/djdeveloperr/modulecache
Global module cache for all modules.
https://github.com/djdeveloperr/modulecache
Last synced: 7 months ago
JSON representation
Global module cache for all modules.
- Host: GitHub
- URL: https://github.com/djdeveloperr/modulecache
- Owner: DjDeveloperr
- License: mit
- Created: 2021-02-09T11:46:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T10:02:17.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T02:35:25.591Z (about 1 year ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Module Cache
Global module cache for all modules. Browser and Deno compatible.
## Usage
```ts
import { ModuleCache } from "https://deno.land/x/module_cache/mod.ts";
const cache = new ModuleCache("my_module");
cache.set("test", "hello world");
cache.get("test"); // "hello world"
cache.delete("test");
```
## Docs
API is all about ModuleCache's get, set and delete methods :)
## License
Check [LICENSE](LICENSE) for more info.
Copyright 2021 @ DjDeveloperr