@furystack/redis-store

9.0.1 • Public • Published

redis-store

Redis Physical Store implementation for FuryStack. filter() and count() is not supported.

An usage example:

import { join } from 'path'
import { Injector } from '@furystack/inject'
import '@furystack/redis-store'
import { createClient } from 'redis'
import { IPhysicalStore, StoreManager } from '@furystack/core'

class MyModel {
  declare id: number
  declare value: string
}

const myInjector = new Injector()
myInjector.useLogging().setupStores((stores) => stores.useRedis(MyModel, 'id', createClient()))

const myStore = myInjector.getInstance(StoreManager).getStoreFor(MyModel)

Package Sidebar

Install

npm i @furystack/redis-store

Weekly Downloads

10

Version

9.0.1

License

GPL-2.0

Unpacked Size

40.3 kB

Total Files

24

Last publish

Collaborators

  • gallayl