@samet-it/be-redis-common
v1.3.4
Published
Redis common component
Readme
Samet IT : Redis Common
ts component backend
___
________ ____/ (______ _________ ____ ___ ____ ___ ____ ____
/ ___/ _ \/ __ / / ___/ / ___/ __ \/ __ `__ \/ __ `__ \/ __ \/ __ \
/ / / __/ /_/ / (__ ) / /__/ /_/ / / / / / / / / / / / /_/ / / / /
/_/ \___/\__,_/_/____/ \___/\____/_/ /_/ /_/_/ /_/ /_/\____/_/ /_/ EN: Use it for redis connectionsTR: Redis (cache) bağlantıları için bu bileşeni kullanınız
Prerequisite
- Help
- 1 - Install Git
- 2 - Build Up a Git Connection
- 3 - Install Node/NPM
- 4 - Create Project Folder
- 5 - Bind Projects Folder to Git
Usage
EN: How to add into your project?TR: Projene nasıl eklersin?
npm i @samet-it/be-redis-commonEnvironments
| Name | Type | Default | Required | Secret | Description |
|-------------------|---------|---------|----------|--------|--------------------------|
| REDIS_HOST | string | | ✅ | ⭕ | Redis Host or IP Address |
| REDIS_PORT | integer | 6379 | ✅ | ⭕ | Redis port |
| REDIS_USER | string | | | ⭕ | Redis User |
| REDIS_PASS | string | | | ⭕ | Redis Password |
| REDIS_PREFIX | string | | | | Prefix for keys |
| REDIS_DB_NUMBER | integer | | | | Redis DB number |
Contents
abstractRedisConnection - abstract connection classclassRedisDirectConnection - Direct connection classfunctionredisConnection() - Direct connection functionabstractRedisChannel - abstract repositoryclassRedisDirectChannel - direct repository
Development
You can start to develop on it
Step 1
Step 2
EN: Clone the projectTR: Projeyi bilgisiyarına çek
git clone https://github.com/samet-digital/be-redis-common.git -b developmentDependencies
@samet-it/be-base-common: samet base common@samet-it/be-cache-common: samet cache common@leyyo/*: leyyo utilities@nestjs/*: nestjs frameworkredis: redis client
Commands
Standards
+ language: TS
+ lint: eslint
+ inspections: intelli-j code inspections
+ ddd: domain driven development
+ edd: exception driven development
! tdd: test driven development
+ ldd: log driven development
+ ddd: document driven developmentHistory
| Date | Developer | Info | Ticket | |------------|----------------|--------------|-------------------------| | 2025-08-13 | Mustafa Yelmer | Created | ~~none~~ | | 2026-01-11 | Mustafa Yelmer | Refactored | ~~none~~ |
