A simple Object Document Mapper (ODM) for Redis in Node.js.
To install the package, run:
npm install nodejs-redis-odm
Here’s a simple example of how to use the package:
import { YourClass } from 'nodejs-redis-odm';
// Initialize your ODM
const odm = new YourClass();
// Example usage
odm.save({ key: 'value' })
.then(() => console.log('Data saved!'))
.catch(err => console.error('Error saving data:', err));
- Description: Saves the provided data to Redis.
-
Parameters:
-
data
(Object): The data to be saved.
-
- Returns: A promise that resolves when the data is saved.
- Description: Finds data in Redis based on the provided query.
-
Parameters:
-
query
(Object): The query to find data.
-
- Returns: A promise that resolves with the found data.
Contributions are welcome! Please read the CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Your Name - Your GitHub Profile
- Coauthor One - Coauthor One GitHub Profile
- Coauthor Two - Coauthor Two GitHub Profile
- Project Title: Change the title to match your package name.
- Description: Provide a brief description of what your package does.
- Installation Instructions: Ensure the installation command is correct.
- Usage Examples: Add relevant code snippets that demonstrate how to use your package.
- API Documentation: Document the main classes and methods available in your package.
-
Contributing Guidelines: Link to a
CONTRIBUTING.md
file if you have one, or provide guidelines directly in the README. - License: Specify the license under which your package is distributed.
- Authors: List the authors and contributors to the project, linking to their GitHub profiles.