https://github.com/hyper63/hyper-adapter-memory
Memory adapter for Hyper Cache port
https://github.com/hyper63/hyper-adapter-memory
Last synced: about 1 year ago
JSON representation
Memory adapter for Hyper Cache port
- Host: GitHub
- URL: https://github.com/hyper63/hyper-adapter-memory
- Owner: hyper63
- License: apache-2.0
- Created: 2021-06-17T16:48:47.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-02T22:05:23.000Z (about 4 years ago)
- Last Synced: 2025-01-13T05:41:38.256Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
hyper-adapter-memory
A Cache port adapter for local memory in the hyper service framework
---
## Table of Contents
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Features](#features)
- [Methods](#methods)
- [Contributing](#contributing)
- [License](#license)
## Getting Started
```js
import { default as memory } from "https://x.nest.land/hyper-adapter-memory@1.2.5/mod.js";
export default {
app: opine,
adapter: [
{
port: "cache",
plugins: [memory()],
},
],
};
```
## Installation
This is a Deno module available to import from
[nest.land](https://nest.land/package/hyper-adapter-memory)
deps.js
```js
export { default as memory } from "https://x.nest.land/hyper-adapter-memory@1.2.5/mod.js";
```
## Features
- Create a named store in `memory`
- Destroy a named store in `memory`
- Create a document in a store in `memory`
- Get a document from a store in `memory`
- Update a document in a store in `memory`
- Delete a document from a store in `memory`
- List documents in a sttore in `memory`
## Methods
This adapter fully implements the Search port and can be used as the
[hyper Cache service](https://docs.hyper.io/cache-api) adapter
See the full port [here](https://nest.land/package/hyper-port-cache)
## Contributing
Contributions are welcome! See the hyper
[contribution guide](https://docs.hyper.io/contributing-to-hyper)
## Testing
```
./scripts/test.sh
```
To lint, check formatting, and run unit tests
## License
Apache-2.0