npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@soapjs/soap-node-redis

v0.0.2

Published

Seamless Redis integration for SoapJS projects, facilitating clean architecture practices and streamlined database interactions.

Downloads

3

Readme

Redis Collections for SoapJS

This package is currently in a Proof of Concept stage.

This package provides a set of Redis collections that integrate seamlessly with the SoapJS framework, enabling efficient and structured data handling in Redis databases. It includes implementations for common Redis data structures like hashes, lists, sets, and sorted sets.

Features

  • Easy-to-use Redis collections and query factories (RedisSearch).
  • Integration with the SoapJS framework for structured, clean architecture.
  • Support for Redis operations such as find, insert, update, and delete.

Collections Included

  • RedisHashCollection: hashes, allowing storage and retrieval of data associated with a key.
  • RedisListCollection: Redis lists, supporting pushing, popping, and range queries.
  • RedisSetCollection: Redis sets, including adding, removing, and querying members.
  • RedisSortedSetCollection: Redis sorted sets, enabling sorted data management and range-based queries.

Installation

To install the package, run the following command in your project directory:

npm install @soapjs/soap-node-redis

Ensure that you have the core @soapjs/soap and redis packages installed, as these collections depend on it.

Status: Proof of Concept

Please note that this package is currently in a Proof of Concept stage. This means that while it demonstrates potential applications and functionalities, it may not be suitable for production use. The implementation is intended to explore ideas and should be used as a reference or a starting point for further development rather than a complete solution.

Key Points

  • The package is not fully tested across all possible use cases and scenarios.
  • Performance and security aspects have not been fully optimized.
  • API and functionalities may change as the project evolves.

Usage

  1. Import the necessary components from the package:

    import {
      RedisListCollection,
      RedisConfig,
      RedisQueryFactory,
      RedisSource,
      RedisUtils
    } from '@soapjs/soap-node-redis';
  2. Set up your Redis configuration:

    const config = new RedisConfig({
      hosts: ['localhost'],
      ports: ['27017'],
      iana: false,
      user: 'admin',
      password: 'admin',
      database: 'my_redis_db'
    });
  3. Create a new RedisSource instance:

    const redisSource = await RedisSource.create(config);
  4. Use collection to perform database operations:

    const collection = new RedisListCollection<MyDocumentType>(redisSource, 'users');
    const documents = await collection.list();

Limitations and Contributions

The current implementation covers basic functionalities of Redis collections. It is an ongoing project, and contributions are welcome to extend the capabilities and add new features.

Documentation

For detailed documentation and additional usage examples, visit SoapJS documentation.

Issues

If you encounter any issues, please feel free to report them here.

Contact

For any questions, collaboration interests, or support needs, you can contact us through the following:

License

@soapjs/soap-node-redis is MIT licensed.