Solidis is a modern, high-performance RESP client designed for Redis and RESP-compatible servers. With a focus on SOLID principles, this library ensures zero dependencies, type safety, and minimal bundle size while supporting both RESP2 and RESP3 protocols, making it a reliable choice for enterprise-grade applications.

Solidis is a high-performance, SOLID-structured RESP client crafted for connecting to Redis and other RESP-compatible servers. Built with enterprise-grade performance and minimal dependencies in mind, it supports both RESP2 and RESP3 protocols, making it suitable for modern JavaScript and TypeScript applications. The design prioritizes a minimal bundle size while ensuring maximum type safety and performance.
import { SolidisClient } from '@vcms-io/solidis';
import { get } from '@vcms-io/solidis/command/get';
import { set } from '@vcms-io/solidis/command/set';
const client = new SolidisClient({ host: '127.0.0.1', port: 6379 }).extend({ get, set });
await client.set('key', 'value');
const value = await client.get('key');
import { SolidisFeaturedClient } from '@vcms-io/solidis/featured';
const client = new SolidisFeaturedClient({ host: '127.0.0.1', port: 6379 });
await client.set('key', 'value');
const transaction = client.multi();
transaction.set('key', 'value');
const results = await transaction.exec();
Solidis provides detailed error handling capabilities, allowing for easy diagnosis and resolution. Use the appropriate error classes for tailored responses based on the type of error encountered.
try {
await client.set('key', 'value');
} catch (error) {
if (error instanceof SolidisConnectionError) {
// handle connection error
}
}
Solidis welcomes contributions from the community. To get started, clone the repository, set up your development environment, and follow the contribution guidelines outlined.
Solidis is designed for developers who need a reliable and efficient RESP client without the overhead of unnecessary dependencies. It empowers applications to leverage the full capabilities of Redis and enhance performance seamlessly.
No comments yet.
Sign in to be the first to comment.