2.1.0 • Published 6 months ago

@nitra/file-link v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@nitra/file-link

file-link Redis Integration

This project provides a simple setup for using the file-link library with Redis or an in-memory store, depending on the environment (production or local development).

Features

  • Redis as a store: In production, the store uses Redis for caching or storing data.
  • In-memory store: In local development, it can default to an in-memory store if Redis is not available.
  • Environment variable checks: The project uses @nitra/check-env to ensure necessary environment variables are defined.
  • Error handling: Any connection errors are logged using an event listener.

Requirements

  • Node.js
  • Redis (for production)

Installation

To install the library, run:

yarn add @nitra/file-link
# or
npm install @nitra/file-link

Configuration

Set the Redis connection string and namespace in the environment variables:

REDIS_CONN=redis://user:password@localhost:6379
file-link_NAMESPACE=your-namespace
2.1.0

6 months ago

2.0.0

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago