4.3.2 • Published 2 months ago
@airswap/stores v4.3.2
Stores
Storage for Indexing
Resources
- About → https://about.airswap.io/
- Website → https://www.airswap.io/
- Twitter → https://twitter.com/airswap
- Chat → https://chat.airswap.io/
Usage
Add the package to your project:
yarn add @airswap/stores
Import into your application:
import { Redis } from '@airswap/stores';
const store = new Redis(process.env.REDISCLOUD_URL)
Dockerized Redis for local development:
docker run -p 6379:6379 --name redis-stack redis/redis-stack:latest
Flush and create Redis indexes:
yarn compile; yarn redis:init
Commands
Command | Description |
---|---|
yarn | Install dependencies |
yarn clean | Delete the contract build folder |
yarn compile | Compile all contracts to build folder |
yarn test | Run all tests in the test folder |