{"library":"think-redis","type":"library","category":null,"description":"think-redis is a Redis wrapper for ThinkJS framework (current version 1.1.4) built on top of ioredis. It provides a simplified promise-based API for common Redis operations like set, get, delete, increase, and decrease. Configuration options mirror ioredis. No frequent releases; it is a thin wrapper providing a ThinkJS-friendly interface with support for expired keys in milliseconds or seconds and event-driven connection handling. Differentiates from raw ioredis by offering convenience methods (e.g., `delete`, `increase`, `decrease`) and a constructor that accepts a config object.","language":"javascript","status":"maintenance","version":"1.1.4","tags":["javascript","think-redis"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install think-redis","imports":["import Redis from 'think-redis'","const redis = new Redis({ host: 'localhost', port: 6379 })","redis.set('foo', 'bar', 5000)","const val = await redis.get('foo')"]},{"cmd":"yarn add think-redis","imports":[]},{"cmd":"pnpm add think-redis","imports":[]}],"homepage":"https://github.com/thinkjs/think-redis#readme","github":"https://github.com/thinkjs/think-redis","docs":null,"changelog":null,"pypi":null,"npm":"think-redis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}